Solution: GitHub Actions Failing with Unexpected value 'branches'
1 min read
Starting seeing this today:

The workflow is not valid. .github/workflows/azure-dev.yml (Line: 3, Col: 5): Unexpected value 'branches'
Apparently workflow_dispatch never supported branches, but GH silently ignored it if you included it.
Starting today, they validate it, so your actions will fail.
Iām sure this broke a ton of actions, hopefully they fix it soon.
In the mean-time, remove branches from workflow_dispatch
Before:
on: workflow_dispatch: branches:
- main - master
push: branches:
- main - master
pull_request: branches:
- main - master
```text
After:
```yaml
on: workflow_dispatch: push: branches:
- main - master
pull_request: branches:
- main - masterDiscussion happening here: https://github.community/t/worflow-with-dispatch-and-branches-setting-suddenly-not-supported-anymore/247732/30
Share: