ci: try different setup for prs

This commit is contained in:
Nicolas Meienberger 2023-06-21 00:05:11 +02:00
parent 77b58d9438
commit c273e4d1d4
3 changed files with 15 additions and 6 deletions

View File

@ -1,6 +1,7 @@
name: automerge
on:
pull_request:
branches: ["renovate/*"]
types:
- labeled
- unlabeled
@ -10,7 +11,6 @@ on:
- ready_for_review
- reopened
- unlocked
branches: ["renovate/*"]
pull_request_review:
types:
- submitted

View File

@ -1,11 +1,11 @@
name: Tipi CI
on:
push:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled]
jobs:
ci:
if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ready') || !startsWith(github.event.pull_request.head.ref, 'renovate/')
runs-on: ubuntu-latest
steps:
- name: Checkout
@ -47,6 +47,7 @@ jobs:
- name: Check bumped version
id: check-bumped-version
if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ready')
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,9 +1,17 @@
name: Update app version in Renovate Branches
on:
push:
branches:
- renovate/*
pull_request:
branches: ["renovate/*"]
types:
- labeled
- opened
- edited
- assigned
- synchronize
- reopened
- unlocked
- ready_for_review
jobs:
update-app-version:
@ -37,7 +45,7 @@ jobs:
- name: Commit & Push Changes
run: |
git add "apps/*/config.json" && git commit --amend --no-edit --no-verify && git push --force-with-lease || true
git add "apps/*/config.json" && git commit -m "chore: update config.json version" --no-edit --no-verify && git push || true
- name: Label this PR as "ready"
if: github.event_name == 'pull_request'