ci: try different setup for prs
This commit is contained in:
parent
77b58d9438
commit
c273e4d1d4
2
.github/workflows/auto-merge.yml
vendored
2
.github/workflows/auto-merge.yml
vendored
|
@ -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
|
||||
|
|
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -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 }}
|
||||
|
|
16
.github/workflows/renovate-app-version.yml
vendored
16
.github/workflows/renovate-app-version.yml
vendored
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user