Skip to content

Commit

Permalink
add autoUpSubmodule 2022-10-01
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Oct 1, 2022
1 parent ca23b3f commit f9dda2e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/autoUpSubmodule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Auto Update Submodule

on:
repository_dispatch:
types: [ sync-shared-submodules ]

env:
COMMIT_MESSAGE: "chore: update submodules"

jobs:
sync-shared-submodule:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: "true"
- name: Update submodule
run: |
git submodule update --init --recursive --remote
# - name: Commit changes
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# commit_message: "Auto Update Submodule"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "nuclei-templates"]
path = nuclei-templates
url = [email protected]:hktalent/nuclei-templates.git
[submodule "config/nuclei-templates"]
path = config/nuclei-templates
url = http://github.com/hktalent/nuclei-templates
1 change: 1 addition & 0 deletions config/nuclei-templates
Submodule nuclei-templates added at 81f548

0 comments on commit f9dda2e

Please sign in to comment.