Skip to content

Commit 1de1c44

Browse files
committed
ci: cosign releases json workflow
Signed-off-by: CrazyMax <[email protected]>
1 parent 16d264a commit 1de1c44

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: cosign-releases-json
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
workflow_dispatch:
9+
schedule:
10+
- cron: '0 */12 * * *'
11+
push:
12+
branches:
13+
- 'main'
14+
pull_request:
15+
paths:
16+
- '.github/workflows/cosign-releases-json.yml'
17+
18+
jobs:
19+
generate:
20+
uses: crazy-max/.github/.github/workflows/releases-json.yml@34fd436075cac6431d2036d5f6f1c3f3d4687ac5
21+
with:
22+
repository: sigstore/cosign
23+
artifact_name: cosign-releases-json
24+
filename: cosign-releases.json
25+
secrets: inherit
26+
27+
open-pr:
28+
runs-on: ubuntu-24.04
29+
if: github.event_name != 'pull_request'
30+
needs:
31+
- generate
32+
steps:
33+
-
34+
name: Checkout
35+
uses: actions/checkout@v5
36+
-
37+
name: Download
38+
uses: actions/download-artifact@v6
39+
with:
40+
name: cosign-releases-json
41+
path: .github
42+
-
43+
name: Commit changes
44+
run: |
45+
git add -A .
46+
-
47+
name: Create PR
48+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
49+
with:
50+
base: main
51+
branch: bot/cosign-releases-json
52+
commit-message: "github: update .github/cosign-releases.json"
53+
signoff: true
54+
delete-branch: true
55+
title: "Update `.github/cosign-releases.json`"
56+
body: |
57+
Update `.github/cosign-releases.json` to keep in sync with [https://github.com/sigstore/cosign](https://github.com/sigstore/cosign).
58+
draft: false

0 commit comments

Comments
 (0)