File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
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 }}
Original file line number Diff line number Diff line change 1
1
[submodule "nuclei-templates "]
2
2
path = nuclei-templates
3
3
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
You can’t perform that action at this time.
0 commit comments