-
-
Notifications
You must be signed in to change notification settings - Fork 39
47 lines (39 loc) · 1.11 KB
/
cacert.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
47
name: "Update cacert.pem"
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Midnight - every night
permissions:
contents: write
pull-requests: write
jobs:
update:
strategy:
matrix:
branch: [1.4, main]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- name: Download cacert.pem
working-directory: res
run: curl -O https://curl.se/ca/cacert.pem
- name: Check SHA256SUM
working-directory: res
run: |
curl -O https://curl.se/ca/cacert.pem.sha256
sha256sum -c cacert.pem.sha256
rm -f cacert.pem.sha256
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
title: 'Update cacert.pem'
body: |
Update cacert.pem using latest from https://curl.se/docs/caextract.html
commit-message: Update cacert.pem
branch: cacert-update/${{ matrix.branch }}
delete-branch: true
sign-commits: true
add-paths: |
res/cacert.pem