File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -110,10 +110,10 @@ jobs:
110
110
rust-toolchain-name : stable
111
111
flavor : doc
112
112
publish-pages :
113
+ if : github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == 'master'
113
114
needs : build-docs
114
115
runs-on : ubuntu-latest
115
116
permissions :
116
- contents : read
117
117
pages : write
118
118
id-token : write
119
119
environment :
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ concurrency:
9
9
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10
10
cancel-in-progress : true
11
11
12
+ permissions : {}
13
+
12
14
jobs :
13
15
rustfmt-check :
14
16
uses : ./.github/workflows/CI-linux.yml
24
26
rustfmt-complain :
25
27
needs : [ rustfmt-check ]
26
28
if : always() && github.event_name == 'pull_request_target' && needs.rustfmt-check.outputs.rustfmt-artifact-url != ''
29
+ permissions :
30
+ pull-requests : write
27
31
runs-on : ubuntu-latest
28
32
steps :
29
33
- name : Create comment
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ concurrency:
8
8
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9
9
cancel-in-progress : true
10
10
11
+ permissions :
12
+ pull-requests : write
13
+
11
14
jobs :
12
15
validation :
13
16
runs-on : ubuntu-latest
23
26
env :
24
27
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
28
run : |
26
- cd rawspeed
29
+ cd rawspeed.rs
27
30
gh pr close --comment "Pull Requests should only be submitted to `master` branch" ${{ github.event.number }}
28
31
exit 1
29
32
- name : Close Pull if PR is not from a proper branch
32
35
env :
33
36
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
37
run : |
35
- cd rawspeed
38
+ cd rawspeed.rs
36
39
gh pr close --comment "Pull Requests source branch should be branched off of the Pull Request's target branch" ${{ github.event.number }}
37
40
exit 1
You can’t perform that action at this time.
0 commit comments