ci: add job to skip renovate stability days for non renovate prs (#3967)
This commit is contained in:
26
.github/workflows/skip-renovate-stability-days.yml
vendored
Normal file
26
.github/workflows/skip-renovate-stability-days.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
permissions:
|
||||||
|
statuses: write
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches-ignore: "renovate/*"
|
||||||
|
types: [opened, synchronize]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
skip-stability-days:
|
||||||
|
name: Skip Stability Days
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Add status check
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
run: |
|
||||||
|
gh api \
|
||||||
|
--method POST \
|
||||||
|
-H "Accept: application/vnd.github+json" \
|
||||||
|
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||||
|
/repos/${{github.repository}}/statuses/${{github.event.pull_request.head.sha}} \
|
||||||
|
-f 'state=success' \
|
||||||
|
-f 'target_url=https://docs.renovatebot.com/configuration-options#minimumreleaseage' \
|
||||||
|
-f 'description=Skipped for non renovate branches' \
|
||||||
|
-f 'context=renovate/stability-days'
|
||||||
Reference in New Issue
Block a user