KStocky: Run Example repo tests after push to main: Merge pull request #138 from KStocky/UnrestrictedConstantBuffers Unrestricted constant buffers #60
This file contains hidden or 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
| name: Example Repo | |
| run-name: "${{github.actor}}: Run Example repo tests after push to main: ${{github.event.head_commit.message}}" | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - "main" | |
| jobs: | |
| RunExampleWorkflow: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{ secrets.DISPATCHEXAMPLEWORKFLOWPAT }} | |
| # For some reason, using the head_commit message within the call to createWorkflowDispatch | |
| # breaks the script runner. So we can't give the exact pull request merge that triggered this run. | |
| script: >- | |
| await github.rest.actions.createWorkflowDispatch({ | |
| owner: 'KStocky', | |
| repo: 'ShaderTestFrameworkExamples', | |
| workflow_id: 'BuildAndRunTests.yml', | |
| ref: 'main', | |
| inputs: { | |
| actor: '${{github.actor}}', | |
| repository: '${{github.event.repository.name}}', | |
| message: "Merging Pull Request" | |
| } | |
| }) |