-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.36 KB
/
Copy pathrender_badges.yml
File metadata and controls
52 lines (42 loc) · 1.36 KB
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
52
name: Render Badges
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
id-token: write
contents: write
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
jobs:
render_badges:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
name: Check out repository to the runner
with:
ref: ${{ github.head_ref }}
fetch-depth: 5
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.FACSIMILAB_BOT_SSHKEY }}
- name: render, commit, and push
run: |
bash render_badges.sh
git config --local user.email "195262995+facsimilab-bot@users.noreply.github.com"
git config --local user.name "FacsimiLab [Bot]"
git config --local user.signingkey "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAEjI+PVQQhQjLVRmB6NnDJhqXKaVjzcr4KG1vqMkd2m FacsimiLab [Bot]"
git config --local gpg.format ssh
git config --local commit.gpgsign true
git config --local tag.gpgSign true
if [ -n "$(git status --porcelain)" ]; then
git commit -a -S -m "ci: Render themed badges"
else
echo "No changes to commit"
fi
git push