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
|
name: automerge
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches: ["renovate/*"]
|
||||||
types:
|
types:
|
||||||
- labeled
|
- labeled
|
||||||
- unlabeled
|
- unlabeled
|
||||||
|
@ -10,7 +11,6 @@ on:
|
||||||
- ready_for_review
|
- ready_for_review
|
||||||
- reopened
|
- reopened
|
||||||
- unlocked
|
- unlocked
|
||||||
branches: ["renovate/*"]
|
|
||||||
pull_request_review:
|
pull_request_review:
|
||||||
types:
|
types:
|
||||||
- submitted
|
- submitted
|
||||||
|
|
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -1,11 +1,11 @@
|
||||||
name: Tipi CI
|
name: Tipi CI
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened, ready_for_review, labeled]
|
types: [opened, synchronize, reopened, ready_for_review, labeled]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -47,6 +47,7 @@ jobs:
|
||||||
|
|
||||||
- name: Check bumped version
|
- name: Check bumped version
|
||||||
id: 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
|
uses: actions/github-script@v4
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
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
|
name: Update app version in Renovate Branches
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
pull_request:
|
||||||
branches:
|
branches: ["renovate/*"]
|
||||||
- renovate/*
|
types:
|
||||||
|
- labeled
|
||||||
|
- opened
|
||||||
|
- edited
|
||||||
|
- assigned
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
- unlocked
|
||||||
|
- ready_for_review
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-app-version:
|
update-app-version:
|
||||||
|
@ -37,7 +45,7 @@ jobs:
|
||||||
|
|
||||||
- name: Commit & Push Changes
|
- name: Commit & Push Changes
|
||||||
run: |
|
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"
|
- name: Label this PR as "ready"
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user