Skip to content

Update caller.yml

Update caller.yml #3

Workflow file for this run

name: Caller Workflow
on:
push:
branches:
- main
jobs:
call-secondary-workflow:
runs-on: ubuntu-latest
steps:
- name: Trigger the secondary workflow
id: trigger
uses: actions/github-script@v6
with:
script: |
const response = await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: "responder.yml", // Name des zweiten Workflows
ref: "main", // Ziel-Branch
inputs: {
TEST: "Hello from Caller"
}
});
core.setOutput("response", "Workflow dispatched successfully!");
- name: Debug response
run: echo "Trigger Response: ${{ steps.trigger.outputs.response }}"

Check failure on line 29 in .github/workflows/caller.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/caller.yml

Invalid workflow file

You have an error in your yaml syntax on line 29