Created
January 23, 2024 04:40
-
-
Save jcs090218/626ce162eff2cbf928a257647aa201bc to your computer and use it in GitHub Desktop.
update_submodules.yml
This file contains hidden or 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 Submodules | |
| on: | |
| schedule: | |
| - cron: '0 * * * *' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - name: Submodule update | |
| run: | | |
| git submodule init | |
| git submodule update --remote --merge | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v5 | |
| with: | |
| title: 'Update submodules' | |
| body: '' | |
| commit-message: 'Update all submodules' | |
| branch: submodules-update | |
| delete-branch: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment