forked from JannisX11/blockbench-plugins
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (28 loc) · 853 Bytes
/
plugin_updates.yml
File metadata and controls
34 lines (28 loc) · 853 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
name: Plugin Updates
on:
push:
branches: [master]
jobs:
generate-updates:
if: github.repository == 'JannisX11/blockbench-plugins'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Generate updates.json
working-directory: build
run: node update_plugin_updates.mjs
- name: Commit and push updates.json
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add updates.json
if ! git diff --cached --quiet; then
git commit -m "Update updates.json"
git push
else
echo "No changes to commit"
fi