generated from okp4/template-oss
-
Notifications
You must be signed in to change notification settings - Fork 28
51 lines (44 loc) · 1.41 KB
/
update-service-status-badges.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
42
43
44
45
46
47
48
49
50
51
name: Update Services Status Badges
on:
push:
branches:
- main
paths:
- "**/README.md"
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
update-status-badges:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
token: ${{ secrets.OKP4_TOKEN }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.OKP4_BOT_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.OKP4_BOT_GPG_PASSPHRASE }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install dependencies
run: npm install
working-directory: .github/scripts
- name: Run script
run: node .github/scripts/markdown-table-link-check.js
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_user_name: ${{ secrets.OKP4_BOT_GIT_COMMITTER_NAME }}
commit_user_email: ${{ secrets.OKP4_BOT_GIT_COMMITTER_EMAIL }}
commit_author: ${{ secrets.OKP4_BOT_GIT_AUTHOR_NAME }} <${{ secrets.OKP4_BOT_GIT_AUTHOR_EMAIL }}>
commit_message: "docs: update url service status badges"