File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Scheduled self-test
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 12 * * *' # Every day at 1200 UTC
6+
7+ jobs :
8+ run-selftests :
9+ permissions :
10+ id-token : write
11+
12+ uses : ./.github/workflows/selftest.yml
13+ open-issue :
14+ permissions :
15+ issues : write
16+
17+ runs-on : ubuntu-latest
18+ if : ${{ failure() }}
19+ needs : run-selftests
20+
21+ steps :
22+ - name : Generate issue text
23+ run : |
24+ cat <<- EOF >/tmp/issue.md
25+ ## Self-test failure
26+
27+ A scheduled test of the workflow has failed.
28+
29+ This suggests one of three conditions:
30+ * A backwards-incompatible change in a Sigstore component;
31+ * A regression in \`gh-action-sigstore-python\`;
32+ * A transient error.
33+
34+ The full CI failure can be found here:
35+
36+ ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/$GITHUB_RUN_ID
37+ EOF
38+
39+ - name : Open issue
40+ uses : peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f # v4.0.1
41+ with :
42+ title : " [CI] Self-test failure"
43+ # created in the previous step
44+ content-filepath : /tmp/issue.md
45+ labels : bug
46+ assignees : woodruffw,tetsuo-cpp,tnytown
Original file line number Diff line number Diff line change 66 - main
77 pull_request :
88 workflow_dispatch :
9+ workflow_call :
910
1011permissions :
1112 id-token : write
You can’t perform that action at this time.
0 commit comments