File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -94,12 +94,26 @@ jobs:
94
94
name : Compile checks
95
95
runs-on : ${{ matrix.os }}
96
96
needs : [MainSequence]
97
+ permissions :
98
+ pull-requests : write
97
99
strategy :
98
100
matrix :
99
101
os : [ubuntu-latest, windows-latest, macOS-latest]
100
102
steps :
101
103
- uses : actions/checkout@v3
102
104
with :
103
105
submodules : true
104
- - run : cmake -B ./build -S .
105
- - run : cmake --build build
106
+ - run : |
107
+ cmake -B ./build -S .
108
+ cmake --build build
109
+ - name : Label on PR fail
110
+ uses : actions/github-script@v6
111
+ if : ${{ failure() && matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request' }}
112
+ with :
113
+ script : |
114
+ github.rest.issues.addLabels({
115
+ issue_number: context.issue.number,
116
+ owner: context.repo.owner,
117
+ repo: context.repo.repo,
118
+ labels: ['automated tests are failing']
119
+ })
You can’t perform that action at this time.
0 commit comments