submodule-update #52
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 module | |
on: | |
workflow_dispatch: | |
repository_dispatch: | |
types: submodule-update | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: "vollaos-10-abm-0.3" | |
- name: Update module | |
run: | | |
git submodule update --init --recursive --remote | |
git config --global user.name "Android Boot Manager (GH Actions)" | |
git config --global user.email "[email protected]" | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | |
git commit -am "submodules_auto_update: Update submodule - ${{ github.event.client_payload.ref }}@${{ github.event.client_payload.module }}" || true | |
git push |