Try to skip successful jobs on rerun workflow
This commit is contained in:
8
.github/actions/job-end/action.yml
vendored
Normal file
8
.github/actions/job-end/action.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
name: job-end
|
||||||
|
description: "Save a job status"
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- run: echo "success" > run_result
|
||||||
|
shell: bash
|
||||||
19
.github/actions/job-start/action.yml
vendored
Normal file
19
.github/actions/job-start/action.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: job-start
|
||||||
|
description: "Setup a job status"
|
||||||
|
outputs:
|
||||||
|
run_result:
|
||||||
|
value: ${{ steps.run_result.outputs.run_result }}
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: Restore the previous run result
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: run_result
|
||||||
|
key: ${{ github.run_id }}-${{ github.job }}
|
||||||
|
restore-keys: ${{ github.run_id }}-${{ github.job }}
|
||||||
|
- name: Set run_result to default or use cached value
|
||||||
|
id: run_result
|
||||||
|
run: echo "::set-output name=run_result::$(cat run_result 2>/dev/null || echo 'default')"
|
||||||
|
shell: bash
|
||||||
294
.github/workflows/chipyard-run-tests.yml
vendored
294
.github/workflows/chipyard-run-tests.yml
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user