-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (31 loc) · 1.24 KB
/
check_cert_status.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 }}