Skip to content

Commit

Permalink
Avoid duplicate CI runs triggered by pushes to pull requests (#2178)
Browse files Browse the repository at this point in the history
#2157 (comment)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
andersk committed Jan 25, 2023
1 parent 9b07d0b commit 823f1c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
@@ -1,6 +1,10 @@
name: CI

on: [push, pull_request, workflow_dispatch]
on:
push:
branches: [main]
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
Expand Down

0 comments on commit 823f1c5

Please sign in to comment.