Skip to content

Commit

Permalink
ci: add merge group
Browse files Browse the repository at this point in the history
  • Loading branch information
fredleger committed Oct 28, 2024
1 parent 512bbf4 commit 0a95777
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 12 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/merge-group-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Pull request - Continuous Integration

on:
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

pull-request-labeler:
name: Pull request labeler
runs-on: self-hosted
permissions:
contents: write
pull-requests: write
steps:
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
disable-releaser: true

ci:
name: Continuous Integration
uses: ./.github/workflows/__shared-ci.yml
permissions:
actions: write
contents: read
id-token: write
issues: read
packages: write
pull-requests: read
secrets: inherit
16 changes: 4 additions & 12 deletions .github/workflows/pull-request-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

pull-request-labeler:
Expand All @@ -19,15 +23,3 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
disable-releaser: true

ci:
name: Continuous Integration
uses: ./.github/workflows/__shared-ci.yml
permissions:
actions: write
contents: read
id-token: write
issues: read
packages: write
pull-requests: read
secrets: inherit
4 changes: 4 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
schedule:
- cron: "30 1 * * *"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
stale:
runs-on: self-hosted
Expand Down

0 comments on commit 0a95777

Please sign in to comment.