Skip to content

Commit

Permalink
[Fix]: specify working directories in workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
yutaro-sakamoto committed Oct 1, 2024
1 parent 425bde7 commit 0b8c8f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
cache-dependency-path: "package-lock.json"

- name: Deploy
working-directory: ./infrastructure
run: |
npm ci
npx cdk deploy --require-approval never -O output.js
2 changes: 2 additions & 0 deletions .github/workflows/post-cdk-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ jobs:
uses: actions/checkout@v4

- name: Run `cdk diff`
working-directory: ./infrastructure
run: |
npm install
echo '# cdk diffの結果' > cdk-diff-result.txt
npx cdk diff >> cdk-diff-result.txt
- name: Post a comment
uses: actions/[email protected]
working-directory: ./infrastructure
with:
script: |
const fs = require('fs')
Expand Down

0 comments on commit 0b8c8f1

Please sign in to comment.