ci: add job to skip renovate stability days for non renovate prs (#3967)

This commit is contained in:
Meier Lukas
2025-09-05 18:17:07 +02:00
committed by GitHub
parent e4f14140a3
commit d4f73d2b39

View 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'