Skip to content

Commit f71137a

Browse files
committed
get cache (2)
1 parent 952c1be commit f71137a

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/get-cache.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1-
name: Download cache and Upload
1+
name: Download Specific Cache
22

33
on:
4-
push:
5-
4+
workflow_dispatch: # Allows manual trigger from the Actions tab
5+
66
jobs:
7-
cache-upload:
7+
download-cache:
88
runs-on: ubuntu-latest
9+
910
steps:
10-
- name: Checkout
11+
- name: Checkout repository
1112
uses: actions/checkout@v4
1213

13-
- name: Cache dependencies
14+
# Restore the cache you want
15+
- name: Restore Cache
1416
uses: actions/cache@v4
1517
with:
16-
path: ./cache-folder
18+
path: ./mycache
1719
key: ximera-main-a6baae8a83be8e55be8c8132ec6ad24a8f4c5ed0
18-
# key: ${{ github.event.inputs.cache_key }}
1920

20-
- name: Upload cached folder as artifact
21-
uses: actions/upload-artifact@v4
21+
# Upload the restored cache as an artifact
22+
- name: Upload Cache as Artifact
23+
uses: actions/upload-artifact@v3
2224
with:
23-
name: cache-artifact
24-
path: ./cache-folder
25+
name: downloaded-cache
26+
path: ./mycache

0 commit comments

Comments
 (0)