-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add workflow to trigger pull request
- Loading branch information
1 parent
a3398b5
commit 776a58f
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: run regression tests | ||
|
||
on: | ||
pull_request: | ||
# types: | ||
# - review_requested | ||
branches: | ||
- master | ||
schedule: | ||
# Nightly runs at 12am Midnight | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
curl --request POST https://api.github.com/repos/spacetelescope/RegressionTests/actions/workflows/jwst.yml/dispatches \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
-H "Content-Type:application/json" \ | ||
-H "User-Agent: SpaceTelescopeGithubBot" \ | ||
-H "Authorization: Bearer ${{ secrets.REGTEST_API_TOKEN }}" \ | ||
--data '{ "ref": "main", "inputs": { "git_repository": "${{ github.event.pull_request.head.repo }}", "git_ref": "${{ github.event.pull_request.head.ref }}", "package": "romancal"}}' | ||