瀏覽代碼

Use branch name instead of entire ref

Rob Winch 3 年之前
父節點
當前提交
ce58a868c9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .github/workflows/build-reference.yml

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

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