Update Submodule #99
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 Submodule | |
| on: | |
| repository_dispatch: | |
| types: [update-submodule] | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '23 3 * * *' | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: 'recursive' | |
| - name: Update submodule | |
| run: | | |
| git submodule update --remote content/GreenStack.Umbraco.UmBootstrap | |
| echo "CHANGED=$(git diff --quiet && echo false || echo true)" >> $GITHUB_ENV | |
| - name: Create Pull Request | |
| if: env.CHANGED == 'true' | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| commit-message: "chore: update GreenStack.Umbraco.UmBootstrap submodule" | |
| title: "Update GreenStack.Umbraco.UmBootstrap submodule" | |
| body: "Automated submodule update from [GreenStack.Umbraco.UmBootstrap](https://github.com/UmbHost/GreenStack.Umbraco.UmBootstrap)." | |
| branch: update-submodule | |
| delete-branch: true |