From e1f0b379dbd3d22748755cd6efe504d73f9bf539 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Tue, 20 Jun 2023 23:35:42 +0200 Subject: [PATCH] ci: use label ready --- .github/workflows/auto-merge.yml | 1 + .github/workflows/ci.yml | 2 +- .github/workflows/renovate-app-version.yml | 16 +++++++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 8eeef02a..28cc9dd6 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -10,6 +10,7 @@ on: - ready_for_review - reopened - unlocked + branches: ["renovate/*"] pull_request_review: types: - submitted diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 099a6df3..f8ebf0d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: Tipi CI on: pull_request: - types: [opened, synchronize, reopened, ready_for_review] + types: [opened, synchronize, reopened, ready_for_review, labeled] jobs: ci: diff --git a/.github/workflows/renovate-app-version.yml b/.github/workflows/renovate-app-version.yml index bfee919d..a658abdf 100644 --- a/.github/workflows/renovate-app-version.yml +++ b/.github/workflows/renovate-app-version.yml @@ -1,7 +1,8 @@ name: Update app version in Renovate Branches on: - push: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: ["renovate/*"] jobs: @@ -37,3 +38,16 @@ jobs: - name: Commit & Push Changes run: | git add "apps/*/config.json" && git commit --amend --no-edit --no-verify && git push --force-with-lease || true + + - name: Label this PR as "ready" + if: github.event_name == 'pull_request' + uses: actions/github-script@v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + github.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ["ready"] + })