cdk deployとcdk diffを実行するCIを有効化した #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pull request | ||
on: | ||
pull_request: | ||
types: [opened, reopened, review_requested, synchronize] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
permissions: | ||
id-token: write | ||
contents: read | ||
jobs: | ||
# 最初にworkflowファイル全体をチェックする | ||
check-workflows: | ||
permissions: | ||
contents: read | ||
uses: ./.github/workflows/check-workflows.yml | ||
# workflowファイル全体のチェックが終わったら、テストを実行する | ||
test: | ||
needs: check-workflows | ||
permissions: | ||
contents: read | ||
secrets: inherit | ||
uses: ./.github/workflows/test.yml | ||
# cdk diffの結果をコメントする | ||
# このリポジトリとAWS環境のOpen ID Connect等による接続が確立したらコメントを外すと良い | ||
cdk-diff-comment: | ||
needs: check-workflows | ||
if: github.actor != 'dependabot[bot]' | ||
permissions: | ||
id-token: write | ||
contents: write | ||
pull-requests: write | ||
secrets: inherit | ||
uses: ./.github/workflows/post-cdk-diff.yml | ||
Check failure on line 40 in .github/workflows/pull_request.yml GitHub Actions / pull requestInvalid workflow file
|