NTP-1234 | GHA | Dismiss Stale Reviews (#14477)

This commit is contained in:
Shivam Goyal
2025-01-09 17:22:57 +05:30
committed by GitHub
parent 53109881b4
commit 9edc2cf6d0

View 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