Skip to content

Commit 841c1e6

Browse files
committed
Remove unnecessary checkout
1 parent 35e09c9 commit 841c1e6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/dispatch-deploy-docs.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,12 @@ jobs:
2525
if: ${{ inputs.should-deploy-docs == 'true' }}
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@v4
29-
with:
30-
ref: ${{ inputs.branch-name }}
31-
fetch-depth: 1
3228
- name: Dispatch (partial build)
3329
if: ${{ inputs.build-type == 'partial' }}
3430
env:
3531
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }}
32+
BRANCH_NAME: ${{ inputs.branch-name }}
33+
run: gh workflow run deploy-docs.yml -r "$BRANCH_NAME" -f build-refname=${{ github.ref_name }}
3734
- name: Dispatch (full build)
3835
if: ${{ inputs.build-type == 'full' }}
3936
env:

0 commit comments

Comments
 (0)