CI: correct automatic mach-examples updates

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-10-17 04:26:02 -07:00
parent 3d0a21c274
commit 06b93b9556

View file

@ -1,9 +1,8 @@
name: Update examples name: Update examples
on: on:
workflow_run: push:
workflows: ["CI"] branches:
types: - "main"
- completed
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
@ -21,7 +20,7 @@ jobs:
- name: 'mach-examples: update mach submodule' - name: 'mach-examples: update mach submodule'
run: | run: |
cd libs/mach cd libs/mach
git pull git checkout origin/main
cd ../../ cd ../../
- name: 'mach-examples: push submodule update' - name: 'mach-examples: push submodule update'
run: | run: |