Skip to content

Commit f9dda2e

Browse files
committed
add autoUpSubmodule 2022-10-01
1 parent ca23b3f commit f9dda2e

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.github/workflows/autoUpSubmodule.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Auto Update Submodule
2+
3+
on:
4+
repository_dispatch:
5+
types: [ sync-shared-submodules ]
6+
7+
env:
8+
COMMIT_MESSAGE: "chore: update submodules"
9+
10+
jobs:
11+
sync-shared-submodule:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
with:
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
submodules: "true"
19+
- name: Update submodule
20+
run: |
21+
git submodule update --init --recursive --remote
22+
# - name: Commit changes
23+
# uses: stefanzweifel/git-auto-commit-action@v4
24+
# with:
25+
# commit_message: "Auto Update Submodule"
26+
- name: Push changes
27+
uses: ad-m/github-push-action@master
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
branch: ${{ github.ref }}

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "nuclei-templates"]
22
path = nuclei-templates
33
url = [email protected]:hktalent/nuclei-templates.git
4+
[submodule "config/nuclei-templates"]
5+
path = config/nuclei-templates
6+
url = http://github.com/hktalent/nuclei-templates

config/nuclei-templates

Submodule nuclei-templates added at 81f548a

0 commit comments

Comments
 (0)