From 0d4959d514f91ecc5bbac8bcd38a4871ba67db08 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Mon, 25 Oct 2021 14:15:19 -0500 Subject: [PATCH] Use GENERATED_BRANCH_NAME --- .github/workflows/build-reference.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-reference.yml b/.github/workflows/build-reference.yml index 142bc544a6..366720e015 100644 --- a/.github/workflows/build-reference.yml +++ b/.github/workflows/build-reference.yml @@ -7,6 +7,7 @@ on: env: GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} + GENERATED_BRANCH_NAME: ${GITHUB_REPOSITORY}/${GITHUB_REF##*/} jobs: build: @@ -19,7 +20,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: ${GENERATED_BRANCH_NAME} # 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 }}