Skip to content

Commit

Permalink
Update cacert.pem automatically (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytestream authored May 24, 2022
1 parent 4c67918 commit 3bd89c7
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/cacert.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Update cacert.pem"

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Midnight - every night

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: "Checkout"
uses: actions/checkout@v3

- 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@v4
with:
title: 'Update cacert.pem'
body: |
Update cacert.pem using latest from https://curl.se/docs/caextract.html
commit-message: Update cacert.pem
delete-branch: true
add-paths: |
res/cacert.pem

0 comments on commit 3bd89c7

Please sign in to comment.