浏览代码

Trying github.ref_name

Tig Kindel 1 年之前
父节点
当前提交
1c8a69a99d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      .github/workflows/api-docs.yml

+ 2 - 2
.github/workflows/api-docs.yml

@@ -10,7 +10,7 @@ permissions:
 
 jobs:
   deploy:
-    name: Build and Deploy API docs to github-pages
+    name: Build and Deploy API docs to github-pages ${{ github.ref_name }}
     environment:
       name: github-pages
       url: ${{ steps.deployment.outputs.page_url }}
@@ -47,7 +47,7 @@ jobs:
       with:
         token: ${{ secrets.GITHUB_TOKEN }}
 
-    - name: v2_develop Repository Dispatch ${{ github.branch }}
+    - name: v2_develop Repository Dispatch ${{ github.ref_name }}
       if: github.ref_name == 'v2_develop'
       uses: peter-evans/repository-dispatch@v2
       with: