add Trigger Target Repo workflow #5
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: Trigger Target Repo | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| trigger: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger Workflow in Target Repo | |
| env: | |
| GH_TOKEN: ${{ secrets.CROSS_REPO_TOKEN }} | |
| run: | | |
| gh workflow run deploy.yml \ | |
| --repo hcyuser/Website-Pages \ | |
| --ref main \ | |
| -f message="Triggered from Source Repo" |