Skip to content

Check certificate status #60

Check certificate status

Check certificate status #60

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@v2
- name: Check Production Certs
run: ./cert_status -s -P DataONEProdCA/certs 2> /dev/null 1> prod_cert_status.csv
- 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
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}