Skip to content

Commit

Permalink
Fix CI trigger path selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Pwuts committed Sep 8, 2023
1 parent 08e6254 commit 4c302e8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/autogpt-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/autogpt-docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c302e8

Please sign in to comment.