From 776a58fc18e52e13d0331f7277ccdd66e54ab4df Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Thu, 9 May 2024 11:02:54 -0400 Subject: [PATCH] add workflow to trigger pull request --- .github/workflows/tests_regression.yml | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/tests_regression.yml diff --git a/.github/workflows/tests_regression.yml b/.github/workflows/tests_regression.yml new file mode 100644 index 0000000000..b4f9061ec0 --- /dev/null +++ b/.github/workflows/tests_regression.yml @@ -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"}}' + + +