-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (33 loc) · 927 Bytes
/
update-links.yml
File metadata and controls
39 lines (33 loc) · 927 Bytes
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
name: Update Share Links
on:
push:
paths:
- "*.scripting"
- "**/*.scripting"
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Generate links and update README
run: node scripts/update_links.js
- name: Commit and push changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git diff-index --quiet HEAD || git commit -m "chore: auto update share links"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}