forked from nodejs/build
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.22 KB
/
certificate-check.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
33
34
35
36
37
38
39
40
41
name: Check for upcoming web certificate expiry
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * *
permissions:
contents: read
issues: write
env:
NODE_VERSION: lts/*
jobs:
check-certificates:
runs-on: ubuntu-latest
steps:
- name: Checkout current repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Check web ceritificate expiry
id: check_certificates
run: node tools/check-certificates/check-certificates.mjs >> $GITHUB_OUTPUT
- name: Create issue
if: ${{ failure() }}
uses: dblock/create-a-github-issue@v3
with:
filename: .github/workflows/certificate-check-template.md
search_existing: all
update_existing: true
env:
ACTION_URL: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CERT_EXPIRY: ${{ steps.check_certificates.outputs.earliestExpiry }}
CERT_CHECKS: ${{ steps.check_certificates.outputs.certificates }}