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

🐛 fix(ci/cd): try cache update #77

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Changes from all commits
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
20 changes: 4 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: npm install
- name: Restore sst cache
id: restore-sst-cache
uses: actions/cache/restore@v4
uses: actions/cache@v4
with:
path: |
.sst
Expand All @@ -76,19 +76,7 @@ jobs:
- name: Deploy app
run: |
npm run deploy
- name: Delete Previous Cache
if: ${{ steps.restore-sst-cache.outputs.cache-hit }}
continue-on-error: true
- name: Enforce cache update for a local NX cache
run: |
gh extension install actions/gh-actions-cache
gh actions-cache delete "sst-cache" --confirm
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Save sst cache
id: save-sst-cache
uses: actions/cache/save@v4
with:
path: |
.sst
.open-next
key: sst-cache
STATE_CACHE_KEY="sst-cache"
echo "STATE_CACHE_KEY=${STATE_CACHE_KEY}" >> $GITHUB_ENV
Loading