Skip to content

Commit 93ce596

Browse files
committed
Drop duplicate if: key on publish-release job
Merge of origin/main into darwin-std-pkg landed two copies of the `if: github.ref == 'refs/heads/main'` guard on the publish-release job: one above `needs:` and one below it. YAML mappings can't have duplicate keys, so GitHub Actions rejected the workflow at parse time: Invalid workflow file: .github/workflows/build-python-version.yml#L1 (Line: 204, Col: 5): 'if' is already defined Both copies were the same condition (added independently on each side of the merge), so removing the second one is purely syntactic — no behavior change.
1 parent 3cb6025 commit 93ce596

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

.github/workflows/build-python-version.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ jobs:
201201
- build-android
202202
- build-linux
203203
- build-windows
204-
if: github.ref == 'refs/heads/main'
205204
permissions:
206205
contents: write
207206
steps:

0 commit comments

Comments
 (0)