File tree Expand file tree Collapse file tree
.github/actions/setup-bun Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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') }}
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') }}
You can’t perform that action at this time.
0 commit comments