Skip to content

urn:node:TFRI replacement PROD cert for 0000-0001-8587-6578 #138

urn:node:TFRI replacement PROD cert for 0000-0001-8587-6578

urn:node:TFRI replacement PROD cert for 0000-0001-8587-6578 #138

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 }}