فهرست منبع

fix deploy docs workflow

- don't use environment variable reference in checkout action
Dan Allen 2 سال پیش
والد
کامیت
2063279d89
1فایلهای تغییر یافته به همراه3 افزوده شده و 5 حذف شده
  1. 3 5
      .github/workflows/deploy-docs.yml

+ 3 - 5
.github/workflows/deploy-docs.yml

@@ -13,21 +13,19 @@ jobs:
   build:
     runs-on: ubuntu-latest
     if: github.repository_owner == 'spring-projects'
-    env:
-      DOCS_BUILD_BRANCH: docs-build
     steps:
     - name: Checkout
       uses: actions/checkout@v3
       with:
-        ref: $DOCS_BUILD_BRANCH
+        ref: docs-build
         fetch-depth: 1
     - name: Dispatch (partial build)
       if: github.ref_type == 'branch'
       env:
         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)
       if: github.ref_type == 'tag'
       env:
         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)