Skip to content

Commit

Permalink
[HOTFIX]: Add correct cache commands
Browse files Browse the repository at this point in the history
  • Loading branch information
branberry committed Jan 16, 2024
1 parent 67e7137 commit 84edd66
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/clean-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ jobs:
auto-builder-stack-enhancedApp-stg-${{github.head_ref}}-worker \
auto-builder-stack-enhancedApp-stg-${{github.head_ref}}-queues \
auto-builder-stack-enhancedApp-stg-${{github.head_ref}}-webhooks
- name: Delete cache
run: gh cache delete ${{github.head_ref}}
10 changes: 9 additions & 1 deletion .github/workflows/deploy-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,12 @@ jobs:
- name: Get Webhook URL
uses: mongodb/docs-worker-actions/comment-pr@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cache root node_modules
id: cache-root
uses: actions/cache@v3
with:
path: |
node_modules
cdk-infra/node_modules
key: ${{ github.head_ref }}
2 changes: 1 addition & 1 deletion .github/workflows/update-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- 'package-lock.json'
- 'cdk-infra/package-lock.json'
- name: Install dependencies
if: steps.filter.outputs.dependencies == 'true' || (github.event_name == 'pull_request' && github.event.action == 'opened')
if: steps.filter.outputs.dependencies == 'true'
run: |
npm ci
cd cdk-infra/
Expand Down

0 comments on commit 84edd66

Please sign in to comment.