Bump docker/setup-buildx-action from 2 to 3 #147
Workflow file for this run
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: Review | |
on: | |
pull_request: | |
env: | |
run_hadolint: 0 | |
jobs: | |
hadolint: | |
name: hadolint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git clone repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check files | |
run: | | |
if git diff --name-only origin/${{ github.base_ref }} HEAD | grep -Eq '*Dockerfile*' ; then | |
echo 'run_hadolint=1' >> $GITHUB_ENV | |
fi | |
- name: Run hadolint | |
if: env.run_hadolint == 1 | |
uses: reviewdog/action-hadolint@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: github-pr-check |