merge-content #135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update on new content dispatch | |
on: | |
repository_dispatch: | |
types: [merge-content] | |
jobs: | |
mergeContent: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout submodule | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.DISPATCH_HOOK_TOKEN }} | |
submodules: true | |
- name: Update submodules content | |
run: git submodule update --remote --recursive | |
- name: Pull the content | |
run: git pull | |
- name: Update submodules index | |
uses: stefanzweifel/[email protected] | |
with: | |
commit_message: apply automatic changed content | |
# branch: static | |