Skip to content

Commit dbe0a6f

Browse files
tnytownwoodruffw
andauthored
schedule-selftest: init (#66)
Signed-off-by: Andrew Pan <[email protected]> Co-authored-by: William Woodruff <[email protected]>
1 parent 64c04b5 commit dbe0a6f

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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

.github/workflows/selftest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
pull_request:
88
workflow_dispatch:
9+
workflow_call:
910

1011
permissions:
1112
id-token: write

0 commit comments

Comments
 (0)