浏览代码

Use GENERATED_BRANCH_NAME

Rob Winch 3 年之前
父节点
当前提交
0d4959d514
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      .github/workflows/build-reference.yml

+ 2 - 1
.github/workflows/build-reference.yml

@@ -7,6 +7,7 @@ on:
 
 
 env:
 env:
   GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
   GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
+  GENERATED_BRANCH_NAME: ${GITHUB_REPOSITORY}/${GITHUB_REF##*/}
 
 
 jobs:
 jobs:
   build:
   build:
@@ -19,7 +20,7 @@ jobs:
       - name: Push generated antora files to the spring-generated-docs
       - name: Push generated antora files to the spring-generated-docs
         uses: JamesIves/github-pages-deploy-action@4.1.4
         uses: JamesIves/github-pages-deploy-action@4.1.4
         with:
         with:
-          branch:  ${GITHUB_REPOSITORY}/${GITHUB_REF##*/} # The branch the action should deploy to.
+          branch:  ${GENERATED_BRANCH_NAME} # The branch the action should deploy to.
           folder: "docs/build/generateAntora" # The folder the action should deploy.
           folder: "docs/build/generateAntora" # The folder the action should deploy.
           repository-name: "spring-io/spring-generated-docs"
           repository-name: "spring-io/spring-generated-docs"
           token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
           token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}