Skip to content

Commit 900a275

Browse files
committed
Update ci.yml
1 parent cae5de2 commit 900a275

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
uses: actions/checkout@v2
1313
with:
1414
submodules: true
15+
persist-credentials: true # Ensures credentials are available for pushing changes
1516

1617
- name: Set up Node.js
1718
uses: actions/setup-node@v2
@@ -35,4 +36,13 @@ jobs:
3536
mkdir -p ../../dist/plugins/"$d"
3637
mv .millennium ../../dist/plugins/"$d".millennium || echo "Failed to move $d to dist/plugins"
3738
cd ..
38-
done
39+
done
40+
41+
- name: Commit and push changes
42+
run: |
43+
git config --global user.name "GitHub Actions"
44+
git config --global user.email "[email protected]"
45+
cd dist
46+
git add .
47+
git commit -m "Update built plugins"
48+
git push origin HEAD || echo "No changes to push"

0 commit comments

Comments
 (0)