diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 130de95a9..e56f2e26e 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -72,7 +72,7 @@ jobs: package: ['builders', 'collection', 'discord.js', 'proxy', 'rest', 'voice'] runs-on: ubuntu-latest env: - BRANCH_NAME: ${{ needs.build.outputs.BRANCH_NAME }} + BRANCH_NAME: ${{ github.event.inputs.ref || needs.build.outputs.BRANCH_NAME }} BRANCH_OR_TAG: ${{ needs.build.outputs.BRANCH_OR_TAG }} SHA: ${{ needs.build.outputs.SHA }} steps: @@ -115,14 +115,14 @@ jobs: path: 'out' - name: Extract package and semver from tag - if: env.BRANCH_OR_TAG == 'tag' + if: ${{ github.event.inputs.ref || env.BRANCH_OR_TAG == 'tag' }} id: extract-tag uses: ./packages/actions/src/formatTag with: tag: ${{ env.BRANCH_NAME }} - name: Move docs to correct directory - if: env.BRANCH_OR_TAG == 'tag' + if: ${{ github.event.inputs.ref || env.BRANCH_OR_TAG == 'tag' }} env: PACKAGE: ${{ steps.extract-tag.outputs.package }} SEMVER: ${{ steps.extract-tag.outputs.semver }} @@ -131,7 +131,7 @@ jobs: mv docs/${PACKAGE}/docs/docs.json out/${PACKAGE}/${SEMVER}.json - name: Move docs to correct directory - if: env.BRANCH_OR_TAG == 'branch' + if: ${{ !github.event.inputs.ref && env.BRANCH_OR_TAG == 'branch' }} env: PACKAGE: ${{ matrix.package }} run: |