@@ -138,8 +138,10 @@ jobs:
138
138
is_develop : ${{ github.ref == 'refs/heads/develop' }}
139
139
is_release : ${{ startsWith(github.ref, 'refs/heads/release/') }}
140
140
is_gitflow_sync : ${{ github.head_ref == 'refs/heads/develop' || github.head_ref == 'refs/heads/master' }}
141
- has_gitflow_label : ${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' Gitflow ') }}
142
- force_skip_cache : ${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' ci-skip-cache ') }}
141
+ has_gitflow_label :
142
+ ${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' Gitflow ') }}
143
+ force_skip_cache :
144
+ ${{ github.event_name == 'pull_request' && contains(steps.pr-labels.outputs.labels, ' ci-skip-cache ') }}
143
145
144
146
job_install_deps :
145
147
name : Install Dependencies
@@ -172,7 +174,6 @@ jobs:
172
174
key : ${{ steps.compute_lockfile_hash.outputs.hash }}
173
175
174
176
- name : Install dependencies
175
- if : steps.cache_dependencies.outputs.cache-hit == '' || needs.job_get_metadata.outputs.force_skip_cache == 'true'
176
177
run : yarn install --ignore-engines --frozen-lockfile
177
178
outputs :
178
179
dependency_cache_key : ${{ steps.compute_lockfile_hash.outputs.hash }}
@@ -215,7 +216,8 @@ jobs:
215
216
path : node_modules/.cache/nx
216
217
key : nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT }}
217
218
# On develop branch, we want to _store_ the cache (so it can be used by other branches), but never _restore_ from it
218
- restore-keys : ${{needs.job_get_metadata.outputs.is_develop == 'false' && env.NX_CACHE_RESTORE_KEYS || 'nx-never-restore'}}
219
+ restore-keys :
220
+ ${{needs.job_get_metadata.outputs.is_develop == 'false' && env.NX_CACHE_RESTORE_KEYS || 'nx-never-restore'}}
219
221
220
222
- name : Build packages
221
223
# Under normal circumstances, using the git SHA as a cache key, there shouldn't ever be a cache hit on the built
@@ -798,7 +800,9 @@ jobs:
798
800
needs : [job_get_metadata, job_build]
799
801
runs-on : ubuntu-20.04
800
802
timeout-minutes : 30
801
- if : contains(github.event.pull_request.labels.*.name, 'ci-overhead-measurements') || needs.job_get_metadata.outputs.is_develop == 'true'
803
+ if : |
804
+ contains(github.event.pull_request.labels.*.name, 'ci-overhead-measurements') ||
805
+ needs.job_get_metadata.outputs.is_develop == 'true'
802
806
steps :
803
807
- name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
804
808
uses : actions/checkout@v3
0 commit comments