Skip to content

Commit

Permalink
Add condition to check RUN_JOB on every job in release GA (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMinkov authored Dec 12, 2023
1 parent 9cd1920 commit 6608056
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,18 @@ jobs:
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
- name: Install npm dependencies
if: ${{ env.RUN_JOB }} == 'true'
run: npm install

- name: Update CHANGELOG.md
if: ${{ env.RUN_JOB }} == 'true'
run: |
npm run update-changelog
git add CHANGELOG.md
git commit -m "Update CHANGELOG for new version $NEW_VERSION"
- name: Create new release branch
if: ${{ env.RUN_JOB }} == 'true'
run: |
NEW_BRANCH="release/${NEW_VERSION}"
git checkout -b $NEW_BRANCH
Expand Down

0 comments on commit 6608056

Please sign in to comment.