ci: rollback pull request settings

This commit is contained in:
Nicolas Meienberger 2023-06-21 00:24:53 +02:00
parent 269ee58184
commit 3cb8e2de56
2 changed files with 4 additions and 27 deletions

View File

@ -1,12 +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 == 'push' && !contains(github.ref_name, 'renovate') || contains(github.event.pull_request.labels.*.name, 'ready') || (github.event_name == 'pull_request' && !contains(github.event.pull_request.head.ref, 'renovate')) if: contains(github.event.pull_request.head.commit.message, '[ready]') || !contains(github.head_ref, 'renovate')
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout

View File

@ -1,20 +1,11 @@
name: Update app version in Renovate Branches name: Update app version in Renovate Branches
on: on:
pull_request: push:
types: branches: ["renovate/*"]
- labeled
- opened
- edited
- assigned
- synchronize
- reopened
- unlocked
- ready_for_review
jobs: jobs:
update-app-version: update-app-version:
if: github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'renovate')
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -45,17 +36,4 @@ jobs:
- name: Commit & Push Changes - name: Commit & Push Changes
run: | run: |
git add "apps/*/config.json" && git commit -m "chore: update config.json version" --no-edit --no-verify && git push || true git add "apps/*/config.json" && git commit -m "chore: update config.json version [ready]" --no-edit --no-verify && git push || 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"]
})