Submodule Update #7
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: Submodule Update | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| submodules: | |
| description: 'Override modules to update via comma-separated list of names' | |
| required: false | |
| default: '' | |
| jobs: | |
| submodule: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Update submodules | |
| run: ./utils/dependencies/scripts/git/submodule-branches.sh -u -m "${{ github.event.inputs.submodules }}" | |
| - name: Create Pull Request | |
| id: cpr | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| commit-message: "chore(ci): update git submodules" | |
| committer: GitHub <[email protected]> | |
| title: "[CI] Update git submodules" | |
| draft: false | |
| signoff: true | |
| delete-branch: true | |
| branch: update-submodules/${{ github.ref_name }} | |
| token: ${{ secrets.ORG_CI_GITHUB }} | |
| - name: Approve Pull Request by CI Bot 1 | |
| if: ${{ steps.cpr.outputs.pull-request-number }} | |
| run: | | |
| gh pr review ${{ steps.cpr.outputs.pull-request-number }} --approve | |
| env: | |
| GH_TOKEN: ${{ github.token }} |