Fix CI trigger path selectors

This commit is contained in:
Reinier van der Leer
2023-09-08 15:25:47 +02:00
parent 08e6254232
commit 4c302e8f0b
3 changed files with 15 additions and 3 deletions

View File

@@ -4,13 +4,21 @@ on:
push:
branches: [ master, ci-test* ]
paths:
- 'autogpts/autogpt'
- 'autogpts/autogpt/**'
- '!autogpts/autogpt/tests/Auto-GPT-test-cassettes'
- '!autogpts/autogpt/tests/challenges/current_score.json'
pull_request:
branches: [ stable, master, release-* ]
paths:
- 'autogpts/autogpt/**'
- '!autogpts/autogpt/tests/Auto-GPT-test-cassettes'
- '!autogpts/autogpt/tests/challenges/current_score.json'
pull_request_target:
branches: [ master, release-*, ci-test* ]
paths:
- 'autogpts/autogpt/**'
- '!autogpts/autogpt/tests/Auto-GPT-test-cassettes'
- '!autogpts/autogpt/tests/challenges/current_score.json'
concurrency:
group: ${{ format('autogpt-ci-{0}', github.head_ref && format('{0}-{1}', github.event_name, github.event.pull_request.number) || github.sha) }}

View File

@@ -4,11 +4,15 @@ on:
push:
branches: [ master ]
paths:
- 'autogpts/autogpt'
- 'autogpts/autogpt/**'
- '!autogpts/autogpt/tests/Auto-GPT-test-cassettes'
- '!autogpts/autogpt/tests/challenges/current_score.json'
pull_request:
branches: [ master, release-*, stable ]
paths:
- 'autogpts/autogpt/**'
- '!autogpts/autogpt/tests/Auto-GPT-test-cassettes'
- '!autogpts/autogpt/tests/challenges/current_score.json'
concurrency:
group: ${{ format('autogpt-docker-ci-{0}', github.head_ref && format('pr-{0}', github.event.pull_request.number) || github.sha) }}

View File

@@ -7,7 +7,7 @@ on:
paths-ignore:
- 'autogpts/autogpt/tests/Auto-GPT-test-cassettes'
- 'autogpts/autogpt/tests/challenges/current_score.json'
- 'benchmark/reports'
- 'benchmark/reports/**'
# So that the `dirtyLabel` is removed if conflicts are resolve
# We recommend `pull_request_target` so that github secrets are available.
# In `pull_request` we wouldn't be able to change labels of fork PRs