Update actions

This commit is contained in:
Nikita Volkov 2024-04-28 15:42:06 +03:00
parent 5b6dd9dfdc
commit 6c6c71930f
4 changed files with 15 additions and 3 deletions

9
.github/workflows/format.yaml vendored Normal file
View File

@ -0,0 +1,9 @@
name: Format
on:
workflow_call:
jobs:
format:
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/format.yaml@v3
secrets: inherit

View File

@ -3,6 +3,7 @@ on:
types: [assigned, opened, synchronize, reopened, labeled, unlabeled]
branches:
- master
- supermajor
- major
- minor
- patch
@ -10,10 +11,12 @@ on:
jobs:
format:
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/format.yaml@v3
if: ${{github.event.pull_request.changed_files > 0}}
uses: ./.github/workflows/format.yaml
secrets: inherit
check:
if: ${{github.event.pull_request.changed_files > 0}}
uses: ./.github/workflows/check.yaml
secrets: inherit

View File

@ -6,7 +6,7 @@ on:
jobs:
format:
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/format.yaml@v3
uses: ./.github/workflows/format.yaml
secrets: inherit
check:

View File

@ -13,7 +13,7 @@ concurrency:
jobs:
format:
uses: nikita-volkov/haskell-hackage-lib-github-actions-workflows/.github/workflows/format.yaml@v3
uses: ./.github/workflows/format.yaml
secrets: inherit
check: