-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci skip] Try to cache successful jobs
- Loading branch information
1 parent
26d1731
commit a34b4c9
Showing
3 changed files
with
1,102 additions
and
1,075 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: job-end | ||
description: "Save a job status" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- run: echo "::set-output name=run_result::success" > run_result |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: job-start | ||
description: "Setup a job status" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- id: timestamp | ||
run: echo "::set-output name=timestamp::$(timestamp +%s)" | ||
- name: Restore the previous run result | ||
uses: actions/cache@v2 | ||
with: | ||
path: run_result | ||
key: ${{ github.run_id }}-${{ github.job }}-${{ steps.timestamp.outputs.timestamp }} | ||
restore-keys: ${{ github.run_id }}-${{ github.job }}- | ||
- id: run_result | ||
run: cat run_result 2>/dev/null || echo 'default' |
Oops, something went wrong.