aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/ferdi-builds.yml
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-06-30 08:20:01 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-06-30 15:15:34 +0530
commitc0a0aa8105251cebc35ab807e6d701806f5b301d (patch)
tree0c863dcce890fc052e9ab67fd81256f59024f33a /.github/workflows/ferdi-builds.yml
parentAdded a TODO for new announcements related to updates. (diff)
downloadferdium-app-c0a0aa8105251cebc35ab807e6d701806f5b301d.tar.gz
ferdium-app-c0a0aa8105251cebc35ab807e6d701806f5b301d.tar.zst
ferdium-app-c0a0aa8105251cebc35ab807e6d701806f5b301d.zip
Split up the dependency updates into its own scheduled job and to be run on the 'develop' branch instead of 'nightly' branch
Diffstat (limited to '.github/workflows/ferdi-builds.yml')
-rw-r--r--.github/workflows/ferdi-builds.yml17
1 files changed, 3 insertions, 14 deletions
diff --git a/.github/workflows/ferdi-builds.yml b/.github/workflows/ferdi-builds.yml
index 35182c222..e93e8b8f9 100644
--- a/.github/workflows/ferdi-builds.yml
+++ b/.github/workflows/ferdi-builds.yml
@@ -24,7 +24,7 @@ on:
24 description: 'Message for build' 24 description: 'Message for build'
25 required: true 25 required: true
26 schedule: 26 schedule:
27 - cron: '0 0 * * *' # every night at 12 am 27 - cron: '0 1 * * *' # every night at 1 am (to allow for dependency builds to complete)
28 28
29env: 29env:
30 USE_HARD_LINKS: false 30 USE_HARD_LINKS: false
@@ -103,25 +103,14 @@ jobs:
103 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, 'nightly branch')) }} 103 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, 'nightly branch')) }}
104 continue-on-error: true 104 continue-on-error: true
105 run: git merge --no-ff --no-verify --commit -m "Merge remote-tracking branch 'origin/develop' into HEAD" origin/develop 105 run: git merge --no-ff --no-verify --commit -m "Merge remote-tracking branch 'origin/develop' into HEAD" origin/develop
106 - name: Update submodules (continue if errored) 106 - id: should_run
107 name: Check whether there are any commits since this run was last triggered and either push or set the output
107 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, 'nightly branch')) }} 108 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, 'nightly branch')) }}
108 continue-on-error: true
109 run: | 109 run: |
110 echo "Updating submodules"
111 git submodule update --remote -f
112 git commit -am "Update submodules" --no-verify || true
113
114 echo "Running linter and tests" 110 echo "Running linter and tests"
115 npm run lint && npm run test 111 npm run lint && npm run test
116 git commit -am "Apply linter fixes" --no-verify || true 112 git commit -am "Apply linter fixes" --no-verify || true
117 113
118 echo "Updating browserslist db"
119 npx browserslist@latest --update-db
120 git commit -am "Apply browserslist data updates" --no-verify || true
121 - id: should_run
122 name: Check whether there are any commits since this run was last triggered and either push or set the output
123 if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, 'nightly branch')) }}
124 run: |
125 CHANGES_COUNT=$(git diff --shortstat origin/nightly | wc -l) 114 CHANGES_COUNT=$(git diff --shortstat origin/nightly | wc -l)
126 MANUAL_REBUILD="${{ github.event_name == 'workflow_dispatch' }}" 115 MANUAL_REBUILD="${{ github.event_name == 'workflow_dispatch' }}"
127 echo "Number of changes: $CHANGES_COUNT" 116 echo "Number of changes: $CHANGES_COUNT"