Closed
Description
Is your feature request related to a problem? Please describe.
As I understand, workflow_dispatch and repository_dispatch with GITHUB_TOKEN can call the other workflow.
However it seems we cannot call the workflow on an other repository.
The example is introduced at GitHub Actions: Use the GITHUB_TOKEN with workflow_dispatch and repository_dispatch
name: Create Workflow Dispatch
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Trigger Workflow
uses: actions/github-script@v6
with:
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'test.yml',
ref: 'main',
})
Describe the solution you'd like
call the workflow on an other repository.
Describe alternatives you've considered
Currently I end up using personal access token or Github Apps instead of GITHUB_TOKEN
Additional context
Add any other context or screenshots about the feature request here.
Metadata
Metadata
Assignees
Labels
No labels