Skip to content

Commit

Permalink
chore: trying to setup actions pre-repease becuase pre-commit.ci has …
Browse files Browse the repository at this point in the history
…not got clang-tidy installed
  • Loading branch information
sekwah41 committed Jun 16, 2024
1 parent 2291116 commit 758217d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pre-commit-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Pre-commit consistency check
on:
workflow_dispatch:
pull_request:
types: [labeled, opened, reopened, synchronize]
push:
branches: [spigot, re-recode]

Expand All @@ -12,14 +13,18 @@ concurrency:

jobs:
pre-commit-check:
if: "github.event.action != 'labeled' || github.event.label.name == 'pre-commit ci run'"
name: Run pre-commit checks
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- run: gh pr edit ${{ github.event.number }} --remove-label 'pre-commit ci run'
if: github.event.action == 'labeled' && github.event.label.name == 'pre-commit ci run'
env:
GH_TOKEN: ${{ github.token }}
- uses: dorny/paths-filter@v2
id: filter
with:
Expand Down

0 comments on commit 758217d

Please sign in to comment.