GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — harden cache usage · kpiwko/opencode@1d243ce

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/actions/setup-bun
    • action.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/actions/setup-bun/action.yml‎

Copy file name to clipboardExpand all lines: .github/actions/setup-bun/action.yml
+10-2Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ runs:
3333
shell: bash
3434
run: echo "dir=$(bun pm cache)" >> "$GITHUB_OUTPUT"
3535

36-
- name: Cache Bun dependencies
37-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
36+
- name: Restore Bun dependencies
37+
id: bun-cache
38+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
3839
with:
3940
path: ${{ steps.cache.outputs.dir }}
4041
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
@@ -56,3 +57,10 @@ runs:
5657
bun install ${{ inputs.install-flags }}
5758
fi
5859
shell: bash
60+
61+
- name: Save Bun dependencies
62+
if: steps.bun-cache.outputs.cache-hit != 'true' && github.event_name != 'pull_request' && github.event_name != 'pull_request_target'
63+
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
64+
with:
65+
path: ${{ steps.cache.outputs.dir }}
66+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.