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 }}\" }" + }'