forked from sigstore/rekor
-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (37 loc) · 1.22 KB
/
cronjobs.yaml
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
name: GH Actions Cron Schedule
on:
workflow_dispatch:
schedule:
# Every M-F at 12:00am run this job
- cron: "0 0 * * 1-5"
jobs:
release-next:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure upstream
run: |
git remote add upstream https://github.com/sigstore/rekor
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions Bot"
- name: Check for existing pull request
run: |
openPRs="$(gh pr list --state open -H release-next-ci --json number | jq -r '.[].number' | wc -l)"
echo 'NUM_OPEN_PRS='$openPRs >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run update script
run: |
./redhat/release/update-to-head.sh
if: ${{ env.NUM_OPEN_PRS == 0 }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
check-image-version:
uses: securesign/actions/.github/workflows/check-image-version.yaml@main
strategy:
matrix:
branch: [main, midstream-v1.2.2]
with:
branch: ${{ matrix.branch }}
secrets:
token: ${{ secrets.GITHUB_TOKEN }}