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
After:
on:
workflow_dispatch:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
Discussion happening here: https://github.community/t/worflow-with-dispatch-and-branches-setting-suddenly-not-supported-anymore/247732/30