Skip to content

Workflow file for this run

name: Main Workflow

Check failure on line 1 in .github/workflows/main.yaml

View workflow run for this annotation

GitHub Actions / Main Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/main.yaml: Expected stream end parse event
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run a one-line script
run: echo "Hello, this is the main workflow running!"
---
name: Dependent Workflow
on:
workflow_run:
workflows: ["Main Workflow"]
types:
- completed
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run a one-line script
run: echo "Hello, this is the dependent workflow running after the main workflow!"