3939 # Fetch 2 is needed to properly check if the yarn.lock is affected by a pull-request
4040 fetch-depth : 2
4141 - uses : ./tools/github-actions/setup
42+ timeout-minutes : 30
4243 env :
4344 YARN_ENABLE_HARDENED_MODE : 1
4445 - name : Yarn errors reporter
@@ -52,11 +53,12 @@ jobs:
5253 needs : [yarn_lock_check]
5354 env :
5455 NX_SKIP_NX_CACHE : ${{ vars.NX_SKIP_NX_CACHE == 'true' || github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release') && !endsWith(github.ref, '-next') }}
55- NX_SKIP_REMOTE_CACHE : ${{ vars.NX_SKIP_REMOTE_CACHE }}
56+ NX_SKIP_REMOTE_CACHE : ${{ vars.NX_SKIP_REMOTE_CACHE || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'skipRemoteCache')) }}
5657 NODE_COMPILE_CACHE : ~/.cache/node-compilation
5758 steps :
5859 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5960 - uses : ./tools/github-actions/setup
61+ timeout-minutes : 30
6062 - uses : ./.github/actions/setup-java
6163 with :
6264 install-jdk : ' true'
@@ -110,16 +112,16 @@ jobs:
110112 with :
111113 affected : ${{ github.event_name == 'pull_request' }}
112114 skipNxCache : ${{ vars.NX_SKIP_NX_CACHE == 'true' || github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release') && !endsWith(github.ref, '-next') }}
113- skipNxRemoteCache : ${{ vars.NX_SKIP_REMOTE_CACHE == 'true' }}
115+ skipNxRemoteCache : ${{ vars.NX_SKIP_REMOTE_CACHE == 'true' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'skipRemoteCache')) }}
114116
115117 it-tests :
116118 uses : ./.github/workflows/it-tests.yml
117119 secrets :
118120 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
119121 needs : [yarn_lock_check, build]
120122 with :
121- skipNxCache : ${{ vars.NX_SKIP_NX_CACHE == 'true' || github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release') && !endsWith(github.ref, '-next') }}
122- skipNxRemoteCache : ${{ vars.NX_SKIP_REMOTE_CACHE == 'true' }}
123+ skipNxCache : ${{ vars.NX_SKIP_NX_CACHE == 'true' || github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release') && !endsWith(github.ref, '-next') }}
124+ skipNxRemoteCache : ${{ vars.NX_SKIP_REMOTE_CACHE == 'true' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'skipRemoteCache')) }}
123125
124126 e2e-tests :
125127 permissions :
@@ -130,7 +132,7 @@ jobs:
130132 needs : [yarn_lock_check, build]
131133 with :
132134 skipNxCache : ${{ vars.NX_SKIP_NX_CACHE == 'true' || github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release') && !endsWith(github.ref, '-next') }}
133- skipNxRemoteCache : ${{ vars.NX_SKIP_REMOTE_CACHE == 'true'}}
135+ skipNxRemoteCache : ${{ vars.NX_SKIP_REMOTE_CACHE == 'true' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'skipRemoteCache')) }}
134136
135137 publish-packages :
136138 uses : ./.github/workflows/publish.yml
@@ -166,4 +168,4 @@ jobs:
166168 version : ${{ needs.version.outputs.nextVersionTag }}
167169 shouldDeploy : false
168170 skipNxCache : ${{ vars.NX_SKIP_NX_CACHE == 'true' }}
169- skipNxRemoteCache : ${{ vars.NX_SKIP_REMOTE_CACHE == 'true' }}
171+ skipNxRemoteCache : ${{ vars.NX_SKIP_REMOTE_CACHE == 'true' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'skipRemoteCache')) }}
0 commit comments