Skip to content

Commit

Permalink
Merge pull request natcap#1501 from davemfish/task/GHA-1495-autotest-…
Browse files Browse the repository at this point in the history
…in-release-b

Allow invest autotest to run in a PR during the autorelease process
  • Loading branch information
emlys authored Jan 5, 2024
2 parents 23fd4a8 + dc70720 commit e5e1519
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,9 @@ jobs:

- name: Run invest-autotest with binaries
if : |
github.event_name == 'push' &&
(startsWith(github.ref, 'release') || github.ref == 'refs/heads/main')
(github.event_name == 'push' &&
(startsWith(github.ref, 'refs/heads/release') || github.ref == 'refs/heads/main')) ||
(github.event_name == 'pull_request' && startsWith(github.head_ref, 'autorelease'))
run: make invest_autotest

- name: Tar the workspace to preserve permissions (macOS)
Expand Down

0 comments on commit e5e1519

Please sign in to comment.