fix deploy docs workflow

- don't use environment variable reference in checkout action
This commit is contained in:
Dan Allen 2022-11-10 20:50:43 -07:00 committed by Rob Winch
parent 1a6a295a07
commit 2063279d89
1 changed files with 3 additions and 5 deletions

View File

@ -13,21 +13,19 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'spring-projects' if: github.repository_owner == 'spring-projects'
env:
DOCS_BUILD_BRANCH: docs-build
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
ref: $DOCS_BUILD_BRANCH ref: docs-build
fetch-depth: 1 fetch-depth: 1
- name: Dispatch (partial build) - name: Dispatch (partial build)
if: github.ref_type == 'branch' if: github.ref_type == 'branch'
env: env:
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
run: gh workflow run deploy-docs.yml -r $DOCS_BUILD_BRANCH -f build-refname=${{ github.ref_name }} run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
- name: Dispatch (full build) - name: Dispatch (full build)
if: github.ref_type == 'tag' if: github.ref_type == 'tag'
env: env:
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
run: gh workflow run deploy-docs.yml -r $DOCS_BUILD_BRANCH run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD)