Skip to content

Commit

Permalink
Merge pull request #31 from nowsprinting/chore/conflibot
Browse files Browse the repository at this point in the history
Add conflibot workflow
  • Loading branch information
nowsprinting authored Oct 26, 2024
2 parents 90d1636 + ec7ab22 commit 6721ac8
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
paths:
- .github/workflows/**

permissions: {}

defaults:
run:
shell: bash

jobs:
actionlint:
runs-on: ubuntu-latest
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/conflibot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check pull requests for conflicts

on:
pull_request_target:
types: [ opened, synchronize, reopened ]

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

permissions: {}

defaults:
run:
shell: bash

jobs:
conflibot:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
pull-requests: read
checks: write

steps:
- uses: actions/checkout@v4
- uses: wktk/conflibot@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
exclude: ""
6 changes: 6 additions & 0 deletions .github/workflows/metacheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ on:
pull_request:
types: [ opened, synchronize, reopened ] # Same as default

permissions: {}

defaults:
run:
shell: bash

jobs:
meta-check:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.inputs.runner }}
cancel-in-progress: true

permissions: {}

defaults:
run:
shell: bash

jobs:
test:
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets.
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

defaults:
run:
shell: bash

jobs:
test:
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets.
Expand Down

0 comments on commit 6721ac8

Please sign in to comment.