feature try rerun on checkout failure

This commit is contained in:
tqcq 2023-12-05 20:57:45 +08:00
parent b2b3caaf2c
commit 2515c2d21b

View File

@ -45,6 +45,12 @@ jobs:
git fetch origin f5643914a9e8f79c606a76e6a9d7ea82a3fc3e65 git fetch origin f5643914a9e8f79c606a76e6a9d7ea82a3fc3e65
git checkout f5643914a9e8f79c606a76e6a9d7ea82a3fc3e65 git checkout f5643914a9e8f79c606a76e6a9d7ea82a3fc3e65
- name: rerun-on-checkout-failure
if: steps.cache-qemu.outputs.cache-hit != 'true' && failure()
env:
GH_TOKEN: ${{ github.token }}
run: gh run rerun ${{ github.run_id }} --failed
- name: install-qemu-build-deps - name: install-qemu-build-deps
if: steps.cache-qemu.outputs.cache-hit != 'true' if: steps.cache-qemu.outputs.cache-hit != 'true'
run: | run: |