Update Archives Submodule and Trigger Pages Build #4132
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 Archives Submodule and Trigger Pages Build | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # daily at midnight UTC | |
| workflow_dispatch: | |
| jobs: | |
| update-submodule: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout parent repository with submodules | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: Configure Git | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Update 'archives' submodule | |
| run: | | |
| git submodule update --remote archives | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v5 | |
| with: | |
| commit-message: "Auto-update archives submodule to latest master" | |
| title: "Auto-update archives submodule" | |
| body: | | |
| Automated update of the archives submodule to the latest commit. | |
| 🤖 This PR was created automatically by the scheduled workflow. | |
| branch: auto-update-archives | |
| delete-branch: true | |
| add-paths: | | |
| archives |