Skip to content

Commit

Permalink
add workflow to trigger pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed May 9, 2024
1 parent c223b18 commit da39ba1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/tests_regression.yml
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"}}'

0 comments on commit da39ba1

Please sign in to comment.