From 86c4217acdf8be2eec5a0b85ade5f1e3fa238479 Mon Sep 17 00:00:00 2001 From: Kevin Pearson Date: Wed, 15 Nov 2023 13:35:08 -0800 Subject: [PATCH] chore: Fix docs generated in prs --- .github/workflows/release-github.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-github.yml b/.github/workflows/release-github.yml index ca9131e7d..70fb05bd5 100644 --- a/.github/workflows/release-github.yml +++ b/.github/workflows/release-github.yml @@ -54,7 +54,7 @@ jobs: if: github.ref_name != 'main' && github.ref_name != 'next' && github.event_name == 'pull_request' run: | echo "NPM_DIST_TAG=test" >> $GITHUB_ENV - echo "DOCS_TAG=$(node ./src/js/version.mjs branch-to-prerelease ${{ github.head_ref }})" >> $GITHUB_ENV + echo "DOCS_TAG=pr-$(node ./src/js/version.mjs branch-to-prerelease ${{ github.head_ref }})" >> $GITHUB_ENV echo "FEATURE_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV - name: Release mono-artifact to GitHub if: (github.ref_name != 'main' && github.event_name != 'pull_request') || github.event_name == 'workflow_dispatch' @@ -100,7 +100,7 @@ jobs: cd /tmp git clone https://rdkcentral:$GITHUB_TOKEN@github.com/rdkcentral/firebolt.git ./firebolt-docs - name: Release docs to GitHub.io - if: steps.check_build.outputs.files_exists == 'true' && (github.ref_name == 'main' || github.ref_name == 'next' || github.event_name != 'pull_request') + if: steps.check_build.outputs.files_exists == 'true' && (github.ref_name == 'main' || github.ref_name == 'next' || github.event_name == 'pull_request') env: GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_PAT }} # <-- Allows semantic-release-bot to push changes to protected branches run: |