aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-24 07:41:36 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-07-24 07:41:36 +0530
commitba3cbf501f1b00180ec90a9a679e31a7c21f0fc3 (patch)
tree35c997f11d87236445c4134decf5a4470bc28cd6
parentUpdated recipes to pull in context-isolation changes. [skip ci] (diff)
downloadferdium-app-ba3cbf501f1b00180ec90a9a679e31a7c21f0fc3.tar.gz
ferdium-app-ba3cbf501f1b00180ec90a9a679e31a7c21f0fc3.tar.zst
ferdium-app-ba3cbf501f1b00180ec90a9a679e31a7c21f0fc3.zip
Trying to fix issue with CHANGES_COUNT not being deduced properly on CI runs (thus skipping the ferdi version). [skip ci]
-rw-r--r--.github/workflows/dependency-updates.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/dependency-updates.yml b/.github/workflows/dependency-updates.yml
index 8daa52a6d..cb40dc27c 100644
--- a/.github/workflows/dependency-updates.yml
+++ b/.github/workflows/dependency-updates.yml
@@ -26,8 +26,10 @@ jobs:
26 uses: actions/checkout@v2 26 uses: actions/checkout@v2
27 with: 27 with:
28 submodules: recursive 28 submodules: recursive
29 - name: Extract Git branch name 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: echo "GIT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV 30 run: |
31 echo "GIT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV
32 echo "GIT_COMMIT=$(git log -1 --format='%H')" >> $GITHUB_ENV
31 shell: bash 33 shell: bash
32 - name: Cache node modules 34 - name: Cache node modules
33 uses: actions/cache@v2 35 uses: actions/cache@v2
@@ -62,7 +64,7 @@ jobs:
62 git config user.name github-actions 64 git config user.name github-actions
63 git config user.email github-actions@github.com 65 git config user.email github-actions@github.com
64 git commit -am "Update submodules, browserslist data updates and linter fixes [skip ci]" --no-verify || true 66 git commit -am "Update submodules, browserslist data updates and linter fixes [skip ci]" --no-verify || true
65 echo "CHANGES_COUNT=$(git diff --shortstat origin/${{ env.GIT_BRANCH_NAME }} | wc -l)" >> $GITHUB_ENV 67 echo "CHANGES_COUNT=$(git diff ${{ env.GIT_COMMIT }} | wc -l)" >> $GITHUB_ENV
66 - 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 - 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
67 if: ${{ (github.event_name == 'schedule' && env.CHANGES_COUNT != '0') || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, 'version bump')) }} 69 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 70 run: npm version prerelease --preid=nightly