This file contains 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: Trigger Webapp Deployment | |
# Trigger the workflow on push and pull request events to the 'main' or 'master' branch | |
on: | |
push: | |
branches: | |
- "master" | |
- "main" | |
- "jun-test-cross-workflow" | |
pull_request: | |
branches: | |
- "master" | |
- "main" | |
jobs: | |
trigger-webapp: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger Deployment Workflow on Webapp Branch | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const response = await github.actions.createWorkflowDispatch({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
workflow_id: 'interface_auto.yml', | |
ref: 'webapp', | |
}); | |
console.log(response); |