Skip to content

Commit

Permalink
ci: skip identical ci in merge queue (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcklingen authored Jan 21, 2025
1 parent a220a35 commit 0f20948
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,24 @@ on:
merge_group:

jobs:
# Add pre-job to skip duplicate actions in merge queues
pre-job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
timeout-minutes: 15
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
do_not_skip: '["workflow_dispatch"]'

build:
needs:
- pre-job
if: needs.pre-job.outputs.should_skip != 'true'
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -25,5 +41,4 @@ jobs:
- run: pnpm install

- name: Build next.js app
# change this if your site requires a custom build command
run: pnpm build

0 comments on commit 0f20948

Please sign in to comment.