Skip to content

refactor: Yarn Workspaces への移行 #20

refactor: Yarn Workspaces への移行

refactor: Yarn Workspaces への移行 #20

Workflow file for this run

# 作成されたプルリクエストに対してDockerfileに変更があればhadolintを実行します。
name: Dockerfile lint
on:
pull_request:
paths:
- 'Dockerfile'
jobs:
lint:
name: Dockerfile lint by Hadolint Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hadolint/[email protected]
id: run_hadolint
with:
dockerfile: ./Dockerfile
no-color: false
no-fail: false
- name: Create pull request comment
uses: actions/[email protected]
if: github.event_name == 'pull_request'
with:
script: |
const hadolintOutput = `
#### Hadolint: \`${{ steps.run_hadolint.outcome }}\`
\`\`\`
${process.env.HADOLINT_RESULTS}
\`\`\`
`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: hadolintOutput,
});