From 367858b743df721338c353e1667e2eb151541066 Mon Sep 17 00:00:00 2001 From: Christopher Dilks Date: Wed, 13 Sep 2023 17:02:28 -0400 Subject: [PATCH] ci: dispatch `clas12-validation` workflow --- .github/workflows/validation.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/validation.yml diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml new file mode 100644 index 0000000000..7a56b0108f --- /dev/null +++ b/.github/workflows/validation.yml @@ -0,0 +1,33 @@ +name: Dispatch Validation + +on: + pull_request: + push: + branches: [ development ] + tags: [ '*' ] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + + clas12-validation: + name: clas12-validation dispatch + runs-on: ubuntu-latest + steps: + - name: dispatch + uses: c-dilks/trigger-workflow-and-wait@summarize # convictional/trigger-workflow-and-wait@v1.6.5 + with: + owner: JeffersonLab + repo: clas12-validation + summarize: true + github_token: ${{ secrets.CLAS12VALIDATION }} + workflow_file_name: ci.yml + ref: main + client_payload: '{ + "source": "${{ github.repository }}", + "title": "${{ github.event.pull_request.title || github.event.head_commit.message }}", + "source_url": "${{ github.event.pull_request.html_url }}", + "git_coatjava": "{\"fork\": \"${{ github.repository }}\", \"branch\": \"${{ github.head_ref || github.ref }}\" }" + }'