implement hadolint #3
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: Hadolint | |
on: pull_request | |
jobs: | |
hadolint: | |
runs-on: ubuntu-latest | |
name: Hadolint-your-PR | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v42 | |
with: | |
# Pass what names/filters you want to catch | |
files: | | |
**/Dockerfile.* | |
separator: " " | |
# Only run if expected files are changed and pass these as input | |
- uses: jbergstroem/hadolint-gh-action@v1 | |
if: steps.changed-files.outputs.any_changed == 'true' | |
with: | |
dockerfile: "${{ steps.changed-files.outputs.other_changed_files }}" |