Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-volkov committed Apr 28, 2024
1 parent 5b6dd9d commit 6c6c719
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@ on:
types: [assigned, opened, synchronize, reopened, labeled, unlabeled]
branches:
- master
- supermajor
- major
- minor
- patch

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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-push-to-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-push-to-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6c6c719

Please sign in to comment.