We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 911ea51 commit 4e9af73Copy full SHA for 4e9af73
.github/workflows/pr.yaml
@@ -21,9 +21,18 @@ on:
21
- 'v[0-9]+.[0-9]+.x'
22
23
jobs:
24
+ fail-if-unsafe:
25
+ runs-on: ubuntu-latest
26
+ if: ${{ !contains( github.event.pull_request.labels.*.name, 'safe-to-test') }}
27
+ steps:
28
+ - name: Fail if not marked as safe to test
29
+ run: |
30
+ echo "CI will not run on a PR unless it has the safe-to-test label applied"
31
+ exit 1
32
test:
33
name: Lint & test
34
runs-on: [ self-hosted, Linux ]
35
+ if: ${{ contains( github.event.pull_request.labels.*.name, 'safe-to-test') }}
36
container:
37
image: golang:1.24
38
0 commit comments