File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Consistent End-User Meta
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ paths :
8
+ - README.md
9
+ workflow_dispatch :
10
+
11
+ jobs :
12
+ meta-update :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v4.1.7
16
+
17
+ - name : Set up Node.js
18
+ uses : actions/setup-node@v4.0.2
19
+ with :
20
+ node-version : " 20"
21
+
22
+ - name : Install dependencies
23
+ run : |
24
+ npm install --production node-html-parser marked @octokit/rest
25
+
26
+ - name : Download Hero program
27
+ run : |
28
+ curl -o update-meta.js https://raw.githubusercontent.com/darsan-in/.github/main/utils/update-meta.js
29
+
30
+ - name : Update meta
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.META_UPDATE_KEY }}
33
+ REPO_META : ${{ github.repository }}
34
+ run : |
35
+ node update-meta.js
36
+
37
+ - name : Commit and push changes
38
+ env :
39
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
+ run : |
41
+ git config --global user.name 'github-actions[bot]'
42
+ git config --global user.email 'github-actions[bot]@users.noreply.github.com'
43
+ git add package.json
44
+ git commit -m 'End-User Meta updated'
45
+ git push
You can’t perform that action at this time.
0 commit comments