Skip to content

Commit

Permalink
Create pre-commit-hook.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-revay authored Oct 22, 2023
1 parent 698ecf6 commit 610f344
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pre-commit-hook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: pre-commit hook

on:
push:
branches: [ "devel", "testing", "stable", "LTS" ]
pull_request:
branches: [ "devel", "testing", "stable", "LTS" ]

jobs:
build:
# name: ${{ matrix.install-gui }}
runs-on: ubuntu-22.04

steps:
- name: Update APT & upgrade
run: sudo apt-get update -y && sudo apt-get upgrade -y
- name: Install dependencies
run: apt install -y shfmt shellcheck

- uses: actions/checkout@v4
- name: print `github.ref=${{ github.ref }}` and `github.sha=${{ github.sha }}`
run: "echo Ref: ${{ github.ref }}, SHA: ${{ github.sha }}"

- name: pre-commit hook should not fail
run: ./pre-commit-hook.sh

0 comments on commit 610f344

Please sign in to comment.