From d4f73d2b393de3c14e676c26885b91a921f8b0a1 Mon Sep 17 00:00:00 2001 From: Meier Lukas Date: Fri, 5 Sep 2025 18:17:07 +0200 Subject: [PATCH] ci: add job to skip renovate stability days for non renovate prs (#3967) --- .../skip-renovate-stability-days.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/skip-renovate-stability-days.yml diff --git a/.github/workflows/skip-renovate-stability-days.yml b/.github/workflows/skip-renovate-stability-days.yml new file mode 100644 index 000000000..2fc403525 --- /dev/null +++ b/.github/workflows/skip-renovate-stability-days.yml @@ -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'