diff options
author | Vijay A <avijayr@protonmail.com> | 2021-07-27 09:57:42 +0530 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-07-27 04:56:34 +0000 |
commit | b0e72d1bd1761b60ee1486631d225a3dd91b9d77 (patch) | |
tree | 044eb71ee798e89abf34c39a8afbae8e28dda7c9 /.github/workflows/dependency-updates.yml | |
parent | Allow to run 'npm version' without dependency on git pre-commit hook. [skip ci] (diff) | |
download | ferdium-app-b0e72d1bd1761b60ee1486631d225a3dd91b9d77.tar.gz ferdium-app-b0e72d1bd1761b60ee1486631d225a3dd91b9d77.tar.zst ferdium-app-b0e72d1bd1761b60ee1486631d225a3dd91b9d77.zip |
Moved the version-bump into the 'ferdi-builds' workflow so that its 'atomic' in nature of the actual scheduled build.
Diffstat (limited to '.github/workflows/dependency-updates.yml')
-rw-r--r-- | .github/workflows/dependency-updates.yml | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/.github/workflows/dependency-updates.yml b/.github/workflows/dependency-updates.yml index 460256e6a..eca47ee90 100644 --- a/.github/workflows/dependency-updates.yml +++ b/.github/workflows/dependency-updates.yml | |||
@@ -29,7 +29,6 @@ jobs: | |||
29 | - name: Extract Git branch name and commit from the currently checked out branch (not from the branch where this run was kicked off) | 29 | - name: Extract Git branch name and commit from the currently checked out branch (not from the branch where this run was kicked off) |
30 | run: | | 30 | run: | |
31 | echo "GIT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV | 31 | echo "GIT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV |
32 | echo "GIT_COMMIT=$(git log -1 --format='%H')" >> $GITHUB_ENV | ||
33 | shell: bash | 32 | shell: bash |
34 | - name: Cache node modules | 33 | - name: Cache node modules |
35 | uses: actions/cache@v2 | 34 | uses: actions/cache@v2 |
@@ -64,9 +63,5 @@ jobs: | |||
64 | git config user.name github-actions | 63 | git config user.name github-actions |
65 | git config user.email github-actions@github.com | 64 | git config user.email github-actions@github.com |
66 | 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 |
67 | echo "CHANGES_COUNT=$(git diff ${{ env.GIT_COMMIT }} | wc -l)" >> $GITHUB_ENV | ||
68 | - 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 | ||
69 | if: ${{ (github.event_name == 'schedule' && env.CHANGES_COUNT != '0') || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, 'version bump')) }} | ||
70 | run: npm version prerelease --preid=nightly | ||
71 | - name: Push all changes | 66 | - name: Push all changes |
72 | run: git push origin ${{ env.GIT_BRANCH_NAME }} --no-verify | 67 | run: git push origin ${{ env.GIT_BRANCH_NAME }} --no-verify |