Skip to content

Commit

Permalink
github workflow skip duplicate jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ProducerMatt committed Jun 18, 2024
1 parent 5e7684a commit 9ac4916
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,29 @@ on:
branches: [ "main" ]

permissions:
actions: write
contents: read

jobs:
build:
pre_job:
name: check for duplicate checkers
# continue-on-error: true # Uncomment once integration is finished
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
paths_ignore: '["**.md", "docs/**"]'
cancel_others: true

build:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
name: Build and test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
Expand Down

0 comments on commit 9ac4916

Please sign in to comment.