NTP-1234 | GHA | Dismiss Stale Reviews (#14477)
This commit is contained in:
32
.github/workflows/dismiss-stale-reviews.yml
vendored
Normal file
32
.github/workflows/dismiss-stale-reviews.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Dismiss Stale Reviews
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master, release-* ]
|
||||
merge_group:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
dismiss-stale-reviews:
|
||||
runs-on: [ default ]
|
||||
if: github.event_name != 'merge_group'
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Create GitHub App Token
|
||||
uses: navi-synced-actions/actions-create-github-app-token@v1
|
||||
id: get-token
|
||||
with:
|
||||
private-key: ${{ secrets.GH_APP_NAVI_ANDROID_PEM }}
|
||||
app-id: ${{ secrets.GH_APP_NAVI_ANDROID_ID }}
|
||||
- name: Dismiss Stale Reviews
|
||||
uses: navi-synced-actions/balvajs-dismiss-stale-reviews@v3
|
||||
with:
|
||||
token: ${{ steps.get-token.outputs.token }}
|
||||
no-owner-action: dismiss-none
|
||||
force-push-action: dismiss-none
|
||||
Reference in New Issue
Block a user