diff options
author | ྅༻ Ǭɀħ ༄༆ཉ <ozh@ozh.org> | 2022-04-30 17:57:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-30 17:57:11 +0300 |
commit | 6034ca05f2bc5ff391d1960f61e35b3cf8977324 (patch) | |
tree | cf3bfdd4301715ee9497358ebb99611894250411 | |
parent | e05ee2aefb5b8c021da2b3a23aa488109315b1a1 (diff) |
Fix checking for new certs (#3313)
Stop fighthing with the etags, just download the darn files
-rw-r--r-- | .github/workflows/update-certificates.yml | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/.github/workflows/update-certificates.yml b/.github/workflows/update-certificates.yml index 27c0f765..bb05083d 100644 --- a/.github/workflows/update-certificates.yml +++ b/.github/workflows/update-certificates.yml @@ -4,15 +4,6 @@ on: # Run every Monday at 13:37 schedule: - cron: '37 13 * * 1' - # Run on every push to `master` - push: - branches: [ master ] - # And whenever this workflow is updated or a PR attempts to update the certificate files. - pull_request: - paths: - - '.github/workflows/update-certificates.yml' - - 'includes/vendor/rmccue/requests/certificates/cacert.pem' - - 'includes/vendor/rmccue/requests/certificates/cacert.pem.sha256' # And manually workflow_dispatch: @@ -33,21 +24,11 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Restore etags cache for certificate files - uses: actions/cache@v3 - with: - path: includes/vendor/rmccue/requests/certificates/etag-*.txt - key: curl-etag-${{ hashFiles('certificates/cacert.pem') }}-${{ hashFiles('certificates/cacert.pem.sha256') }} - restore-keys: | - curl-etag- - - - name: Get current certificate bundle if changed - working-directory: ./includes/vendor/rmccue/requests/certificates - run: curl --etag-compare etag-cert.txt --etag-save etag-cert.txt --remote-name https://curl.se/ca/cacert.pem - - - name: Get current SHA256 checksum file for the bundle if changed + - name: Get current certificate bundle working-directory: ./includes/vendor/rmccue/requests/certificates - run: curl --etag-compare etag-sha.txt --etag-save etag-sha.txt --remote-name https://curl.se/ca/cacert.pem.sha256 + run: | + curl --remote-name https://curl.se/ca/cacert.pem + curl --remote-name https://curl.se/ca/cacert.pem.sha256 - name: Verify the checksum of the downloaded bundle working-directory: ./includes/vendor/rmccue/requests/certificates |