-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (36 loc) · 1.16 KB
/
schedule-selftest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Scheduled self-test
on:
schedule:
- cron: '0 12 * * *' # Every day at 1200 UTC
jobs:
run-selftests:
permissions:
id-token: write
uses: ./.github/workflows/selftest.yml
open-issue:
permissions:
issues: write
runs-on: ubuntu-latest
if: ${{ failure() }}
needs: run-selftests
steps:
- name: Generate issue text
run: |
cat <<- EOF >/tmp/issue.md
## Self-test failure
A scheduled test of the workflow has failed.
This suggests one of three conditions:
* A backwards-incompatible change in a Sigstore component;
* A regression in \`gh-action-sigstore-python\`;
* A transient error.
The full CI failure can be found here:
${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/$GITHUB_RUN_ID
EOF
- name: Open issue
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5.0.1
with:
title: "[CI] Self-test failure"
# created in the previous step
content-filepath: /tmp/issue.md
labels: bug
assignees: woodruffw