File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
scripts/split-tox-gh-actions/templates Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 32
32
- uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
33
33
with :
34
34
persist-credentials : false
35
- - name : permissions
35
+ - name : Check permissions on PR
36
+ if : github.event_name == 'pull_request_target'
36
37
run : |
37
38
python3 -uS .github/workflows/scripts/trigger_tests_on_label.py \
38
39
--repo-id ${{ github.event.repository.id }} \
45
46
# these can contain special characters
46
47
ARG_USERNAME : ${{ github.event.pull_request.user.login }}
47
48
ARG_LABEL_NAMES : ${{ toJSON(github.event.pull_request.labels.*.name) }}
49
+ - name : Check permissions on repo branch
50
+ if : github.event_name == 'push'
51
+ run : true
48
52
test-pinned :
49
53
needs : check-permissions
50
54
timeout-minutes : 30
Original file line number Diff line number Diff line change 6
6
with:
7
7
persist-credentials: false
8
8
9
- - name: permissions
9
+ - name: Check permissions on PR
10
+ if: github.event_name == 'pull_request_target'
10
11
run: |
11
12
{% raw %}
12
13
python3 -uS .github/workflows/scripts/trigger_tests_on_label.py \
23
24
ARG_USERNAME: ${{ github.event.pull_request.user.login }}
24
25
ARG_LABEL_NAMES: ${{ toJSON(github.event.pull_request.labels.*.name) }}
25
26
{% endraw %}
27
+
28
+ - name: Check permissions on repo branch
29
+ if: github.event_name == 'push'
30
+ run: true
You can’t perform that action at this time.
0 commit comments