We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5591a2 commit 63896eaCopy full SHA for 63896ea
.github/workflows/lint-dockerfiles.yml
@@ -14,12 +14,12 @@ jobs:
14
steps:
15
- uses: actions/checkout@v3
16
with:
17
- fetch-depth: 2
+ fetch-depth: 0
18
19
- name: Modified files
20
id: file-changes
21
run: |
22
- echo "changed-files=$(git diff --name-only -r HEAD^1 HEAD | grep 'Dockerfile' | tr '\n' ' ')" >> $GITHUB_OUTPUT
+ echo "changed-files=$(git diff --name-only -r origin/${GITHUB_BASE_REF} origin/${GITHUB_HEAD_REF} | grep 'Dockerfile' | tr '\n' ' ')" >> $GITHUB_OUTPUT
23
24
- name: Check GitHub event type to determine reporter type
25
@@ -35,5 +35,5 @@ jobs:
35
fail_on_error: false
36
filter_mode: diff_context
37
hadolint_flags: ${{ steps.file-changes.outputs.changed-files }}
38
- level: warning
+ level: error
39
reporter: ${{ env.REVIEWDOG_REPORTER }}
0 commit comments