-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (29 loc) · 929 Bytes
/
updateSubmodules.yml
File metadata and controls
35 lines (29 loc) · 929 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
name: Update submodules
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
env:
GH_TOKEN: ${{ github.token }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
REASON: ${{ github.event_name }}
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Clone build script
run: git clone --depth 1 --branch main https://github.com/VendroidEnhanced/plugin .
- name: Config author
run: |
git config --global user.email "personal@nin0.dev"
git config --global user.name "gh-actions"
- name: Update submodules
run: node _scripts/updateSubmodules.mjs
- name: Push changes
run: |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/VendroidEnhanced/plugin
git push origin main