Skip to content

Merge pull request #39 from nowsprinting/chore/fix_workflows_for_publ… #47

Merge pull request #39 from nowsprinting/chore/fix_workflows_for_publ…

Merge pull request #39 from nowsprinting/chore/fix_workflows_for_publ… #47

Workflow file for this run

name: Lint Dockerfile
on:
push:
branches:
- master
paths:
- .github/workflows/hadolint.yml
- Dockerfile
pull_request:
types: [ opened, synchronize, reopened ] # Same as default
paths:
- .github/workflows/hadolint.yml
- Dockerfile
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
steps:
- uses: actions/checkout@v4
- name: Lint
uses: hadolint/hadolint-action@master
with:
dockerfile: Dockerfile
- uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,job,pullRequest
mention: here
if_mention: failure
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: failure() && github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets.