all: update dependencies #385
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 examples | |
on: | |
push: | |
branches: | |
- "main" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
publish: | |
if: github.repository_owner == 'hexops' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout hexops/mach-examples repo | |
uses: actions/checkout@v2 | |
with: | |
repository: hexops/mach-examples | |
token: ${{ secrets.HEXOPS_MACH_PUSH_SUBREPOS }} | |
submodules: 'true' | |
- name: 'mach-examples: update mach submodule' | |
run: | | |
cd libs/mach | |
git checkout origin/main | |
cd ../../ | |
- name: 'mach-examples: push submodule update' | |
run: | | |
git config user.name 'Release automation' | |
git config user.email '[email protected]' | |
git add . | |
git commit -m 'libs: mach: update to latest main revision' | |
git push -u origin HEAD |