urn:node:mnStageUCSB2 Test cert for Jing 0000-0002-1209-5268 #130
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: Check certificate status | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: | |
- cron: "3 3 * * 1" | |
jobs: | |
cert-status: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check Production Certs | |
run: ./cert_status -s -P DataONEProdIntCA/certs 2> /dev/null 1> prod_cert_status.csv | |
- name: Check Test Certs | |
run: ./cert_status -s -P DataONETestIntCA/certs 2> /dev/null 1> test_cert_status.csv | |
- name: Update iCal Prod Expirations | |
run: ./cert_status -P -L DataONEProdIntCA/certs | |
- name: Update iCal Test Expirations | |
run: ./cert_status -L -a DataONETestIntCA/certs/DataONETestIntCA.pem -c DataONETestRootCA/certs/DataONETestRootCA.pem DataONETestIntCA/certs | |
- name: Commit changes | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git commit -m "Update cert status info" prod_cert_status.csv Prod_events.ics test_cert_status.csv Test_events.ics | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |