Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): save cache on main at end of workflow #17354

Merged
merged 2 commits into from
Jan 11, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Better names.
  • Loading branch information
dsherret committed Jan 11, 2023
commit 806f9021cb847d7ec25c53e9664de284002d9832
4 changes: 2 additions & 2 deletions .github/workflows/ci.generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ const ci = {
},
{
// Restore cache from the latest 'main' branch build.
name: "Cache build output (PR)",
name: "Restore cache build output (PR)",
uses: "actions/cache/restore@v3",
if:
"github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')",
Expand Down Expand Up @@ -775,7 +775,7 @@ const ci = {
},
{
// In main branch, always creates fresh cache
name: "Cache build output (main)",
name: "Save cache build output (main)",
uses: "actions/cache/save@v3",
if:
"(matrix.profile == 'release' || matrix.profile == 'fastci') && github.ref == 'refs/heads/main'",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ jobs:
~/.cargo/git/db
key: '18-cargo-home-${{ matrix.os }}-${{ hashFiles(''Cargo.lock'') }}'
if: steps.exit_early.outputs.EXIT_EARLY != 'true'
- name: Cache build output (PR)
- name: Restore cache build output (PR)
uses: actions/cache/restore@v3
if: 'steps.exit_early.outputs.EXIT_EARLY != ''true'' && (github.ref != ''refs/heads/main'' && !startsWith(github.ref, ''refs/tags/''))'
with:
Expand Down Expand Up @@ -522,7 +522,7 @@ jobs:
target/release/lib.deno.d.ts
body_path: target/release/release-notes.md
draft: true
- name: Cache build output (main)
- name: Save cache build output (main)
uses: actions/cache/save@v3
if: steps.exit_early.outputs.EXIT_EARLY != 'true' && ((matrix.profile == 'release' || matrix.profile == 'fastci') && github.ref == 'refs/heads/main')
with:
Expand Down