From bbaa5b89c2c0e81b8636029fcf43f85b5b1c7240 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Thu, 15 Jun 2023 13:16:25 +0200 Subject: [PATCH] Add CI trigger for release-* branches --- .github/workflows/ci.yml | 16 ++++++++-------- .github/workflows/docker-ci.yml | 2 +- .github/workflows/pr-label.yml | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0718c46f..3e21d1d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,18 +7,18 @@ on: - 'tests/Auto-GPT-test-cassettes' - 'tests/challenges/current_score.json' pull_request: - branches: [ stable, master ] + branches: [ stable, master, release-* ] pull_request_target: - branches: [ master, ci-test* ] + branches: [ master, release-*, ci-test* ] concurrency: - group: ${{ format('ci-{0}', github.head_ref && format('pr-{0}', github.event.pull_request.number) || github.sha) }} - cancel-in-progress: ${{ startsWith(github.event_name, 'pull_request') && github.event.pull_request.head.repo.fork == (github.event_name == 'pull_request_target') }} + group: ${{ format('ci-{0}', github.head_ref && format('{0}-{1}', github.event_name, github.event.pull_request.number) || github.sha) }} + cancel-in-progress: ${{ startsWith(github.event_name, 'pull_request') }} jobs: lint: - # eliminate duplicate runs on master - if: github.event_name == 'push' || github.base_ref != 'master' || (github.event.pull_request.head.repo.fork == (github.event_name == 'pull_request_target')) + # eliminate duplicate runs + if: github.event_name == 'push' || (github.event.pull_request.head.repo.fork == (github.event_name == 'pull_request_target')) runs-on: ubuntu-latest env: @@ -73,8 +73,8 @@ jobs: $cmd --check || (echo "You have unused imports or pass statements, please run '${cmd} --in-place'" && exit 1) test: - # eliminate duplicate runs on master - if: github.event_name == 'push' || github.base_ref != 'master' || (github.event.pull_request.head.repo.fork == (github.event_name == 'pull_request_target')) + # eliminate duplicate runs + if: github.event_name == 'push' || (github.event.pull_request.head.repo.fork == (github.event_name == 'pull_request_target')) permissions: # Gives the action the necessary permissions for publishing new diff --git a/.github/workflows/docker-ci.yml b/.github/workflows/docker-ci.yml index cacb58c5..3da88891 100644 --- a/.github/workflows/docker-ci.yml +++ b/.github/workflows/docker-ci.yml @@ -7,7 +7,7 @@ on: - 'tests/Auto-GPT-test-cassettes' - 'tests/challenges/current_score.json' pull_request: - branches: [ master, stable ] + branches: [ master, release-*, stable ] concurrency: group: ${{ format('docker-ci-{0}', github.head_ref && format('pr-{0}', github.event.pull_request.number) || github.sha) }} diff --git a/.github/workflows/pr-label.yml b/.github/workflows/pr-label.yml index e024f34b..ebeb7305 100644 --- a/.github/workflows/pr-label.yml +++ b/.github/workflows/pr-label.yml @@ -3,7 +3,7 @@ name: "Pull Request auto-label" on: # So that PRs touching the same files as the push are updated push: - branches: [ master ] + branches: [ master, release-* ] paths-ignore: - 'tests/Auto-GPT-test-cassettes' - 'tests/challenges/current_score.json'