File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 40
40
required : false
41
41
permissions : {}
42
42
jobs :
43
+ checks :
44
+ name : Sanity checks
45
+ runs-on : ubuntu-24.04
46
+ permissions :
47
+ issues : read
48
+ pull-requests : read
49
+ steps :
50
+ - name : Check for X-Release-Blocker label on any open issues or PRs
51
+ uses : actions/github-script@v7
52
+ with :
53
+ script : |
54
+ const { data } = await github.rest.search.issuesAndPullRequests({
55
+ q: `repo:${context.repo.owner}/${context.repo.repo} label:X-Release-Blocker is:open`,
56
+ per_page: 50,
57
+ });
58
+
59
+ if (data.total_count) {
60
+ data.items.forEach(item => {
61
+ core.error(`Release blocker: ${item.html_url}`);
62
+ });
63
+ core.setFailed(`Found release blockers!`);
64
+ }
65
+
43
66
release :
44
67
name : Release
45
68
runs-on : ubuntu-24.04
46
69
environment : Release
70
+ needs : checks
47
71
permissions :
48
72
contents : write
49
73
steps :
You can’t perform that action at this time.
0 commit comments