diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 55eab349a..98852fb9a 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -32,7 +32,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 with: - ref: ${{ github.event.inputs.ref || '' }} + ref: ${{ inputs.ref || '' }} - name: Install node.js v16 uses: actions/setup-node@v3 @@ -73,8 +73,6 @@ jobs: env: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ secrets.TURBO_TEAM }} - BRANCH_NAME: ${{ github.event.inputs.ref || needs.build.outputs.BRANCH_NAME }} - BRANCH_OR_TAG: ${{ github.event.inputs.ref_type || needs.build.outputs.BRANCH_OR_TAG }} steps: - name: Checkout repository uses: actions/checkout@v3 @@ -111,14 +109,14 @@ jobs: path: 'out' - name: Extract package and semver from tag - if: ${{ env.GITHUB_REF_TYPE == 'tag' }} + if: ${{ github.ref_type == 'tag' }} id: extract-tag uses: ./packages/actions/src/formatTag with: tag: ${{ env.GITHUB_REF_NAME }} - name: Move docs to correct directory - if: ${{ env.GITHUB_REF_TYPE == 'tag' && matrix.package == steps.extract-tag.outputs.package }} + if: ${{ github.ref_type == 'tag' && matrix.package == steps.extract-tag.outputs.package }} env: PACKAGE: ${{ steps.extract-tag.outputs.package }} SEMVER: ${{ steps.extract-tag.outputs.semver }} @@ -132,7 +130,7 @@ jobs: fi - name: Move docs to correct directory - if: ${{ env.GITHUB_REF_TYPE == 'branch' }} + if: ${{ github.ref_type == 'branch' }} env: PACKAGE: ${{ matrix.package }} run: |