chore(deps): bump hmarr/auto-approve-action from 3.2.1 to 4.0.0 #122
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
on: pull_request | |
name: dockerfile linting | |
jobs: | |
dockerfilelint: | |
name: dockerfile lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: hadolint | |
uses: burdzwastaken/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
HADOLINT_ACTION_DOCKERFILE_FOLDER: . | |
dockerbuild: | |
name: docker build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: extract tag | |
id: vars | |
run: echo ::set-output name=alpine_version::$(grep '^FROM alpine' Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2) | |
- name: docker build | |
run: docker build . --file Dockerfile --tag image:${{ steps.vars.outputs.alpine_version }} | |
approve: | |
name: Dependabot PR Auto-approve | |
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: hmarr/[email protected] | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" |