Renew certificate list #1239
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Renew certificate list | |
on: | |
schedule: # every day at 3:37 and 13:37 UTC | |
- cron: '37 3,13 * * *' | |
push: | |
paths: | |
- '.github/workflows/renew_certificates.yml' | |
- 'fetch_certificates.js' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: { node-version: '16' } | |
- run: npm ci | |
- run: npm run update-certificates | |
env: | |
TACV_TOKEN: ${{ secrets.TACV_TOKEN }} | |
- run: npm test | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: tacv_data.json | |
path: /tmp/tacv_data.json | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@6bb739433928fbc2bdc635d41105e124d0dce021 | |
with: | |
base: master | |
commit-message: Auto-update certificates from TAC-Verif | |
branch: auto-certificate-updates | |
title: '[Bot] Update Digital Green Certificate signing keys' |