diff options
author | Vijay A <avijayr@protonmail.com> | 2021-07-17 13:02:16 +0530 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-07-17 10:24:07 +0000 |
commit | c3398f8995fd7e974edc2d24b58ccbd1b2139ed9 (patch) | |
tree | de3f4f27ac4fa1928551b988ca3300a55d05a422 | |
parent | Fixed issue where the 'copy page url' didn't honor silent notifications for c... (diff) | |
download | ferdium-app-c3398f8995fd7e974edc2d24b58ccbd1b2139ed9.tar.gz ferdium-app-c3398f8995fd7e974edc2d24b58ccbd1b2139ed9.tar.zst ferdium-app-c3398f8995fd7e974edc2d24b58ccbd1b2139ed9.zip |
Skip bumping of app version if there are no other changes in a scheduled build.
-rw-r--r-- | .github/workflows/dependency-updates.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/dependency-updates.yml b/.github/workflows/dependency-updates.yml index cd06b8392..eb1fb56f2 100644 --- a/.github/workflows/dependency-updates.yml +++ b/.github/workflows/dependency-updates.yml | |||
@@ -63,8 +63,9 @@ jobs: | |||
63 | git config user.name github-actions | 63 | git config user.name github-actions |
64 | git config user.email github-actions@github.com | 64 | git config user.email github-actions@github.com |
65 | git commit -am "Update submodules, browserslist data updates and linter fixes [skip ci]" --no-verify || true | 65 | git commit -am "Update submodules, browserslist data updates and linter fixes [skip ci]" --no-verify || true |
66 | - name: Bump version number if this is a scheduled build or has been manually triggered with 'version bump' in the text, then bump the version number | 66 | echo "CHANGES_COUNT=$(git diff --shortstat @{u} | wc -l)" |
67 | if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, 'version bump')) }} | 67 | - name: Bump version number if this is a scheduled build with changes or has been manually triggered with 'version bump' in the text, then bump the version number |
68 | if: ${{ (github.event_name == 'schedule' && env.CHANGES_COUNT != '0') || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, 'version bump')) }} | ||
68 | run: npm version prerelease --preid=nightly | 69 | run: npm version prerelease --preid=nightly |
69 | - name: Push all changes | 70 | - name: Push all changes |
70 | run: git push origin ${{ env.GIT_BRANCH_NAME }} --no-verify | 71 | run: git push origin ${{ env.GIT_BRANCH_NAME }} --no-verify |