File tree 2 files changed +13
-7
lines changed
2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,13 @@ jobs:
55
55
with :
56
56
ref : ${{ github.event.pull_request.head.sha || github.sha }}
57
57
58
- - uses : actions/setup-python@v5
59
- if : steps.check-tests.outputs.enabled == 'true'
60
- with :
61
- cache-dependency-path : tests/requirements.txt
62
- cache : ' pip'
63
- python-version : ' 3.10.1'
58
+ # setup-python currently only works on ubuntu images
59
+ # - uses: actions/setup-python@v5
60
+ # if: steps.check-tests.outputs.enabled == 'true'
61
+ # with:
62
+ # cache-dependency-path: tests/requirements.txt
63
+ # cache: 'pip'
64
+ # python-version: '3.10.1'
64
65
65
66
- name : Install dependencies
66
67
if : ${{ steps.check-tests.outputs.enabled == 'true' }}
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ jobs:
167
167
clean :
168
168
name : Clean objects
169
169
needs : unit-test-results
170
- if : always() && ${{ github.event_name }} == 'pull_request_target' && ${{ github.event.action }} != 'closed'
170
+ if : always()
171
171
permissions :
172
172
actions : write
173
173
runs-on : ubuntu-latest
@@ -179,6 +179,11 @@ jobs:
179
179
const ref = '${{ github.event.pull_request.number || github.ref }}';
180
180
const key_prefix = 'tests-' + ref + '-';
181
181
182
+ if ('${{ github.event_name }}' == 'pull_request_target' && '${{ github.event.action }}' != 'closed') {
183
+ console.log('Skipping cache cleanup for open PR');
184
+ return;
185
+ }
186
+
182
187
await github.paginate(github.rest.actions.getActionsCacheList, {
183
188
owner: context.repo.owner,
184
189
repo: context.repo.repo,
You can’t perform that action at this time.
0 commit comments