Skip to content

Commit 4d3dc14

Browse files
committed
fix(ci): flip push-to-fork polarity in changelog PR opener
peter-evans/create-pull-request@v6 expects push-to-fork=false when the workflow runs against the upstream (espetro/dinov2.cpp itself, not a fork). The previous expression evaluated to true in this repo's context, causing the action's 'is this a fork?' probe to hit an upstream-against-upstream API call that returns 404, which surfaces as '##[error]Not Found' and skips the branch+PR creation. This expression (push-to-fork: github.repository_owner != 'espetro') preserves the original intent for future forks while correctly disabling fork-pushing on the upstream.
1 parent 536d429 commit 4d3dc14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/changelog.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
commit-message: "chore(changelog): regenerate for ${{ github.ref_name }}"
7979
branch: "changelog/${{ github.ref_name }}"
8080
base: main
81-
push-to-fork: ${{ github.repository_owner == 'espetro' }}
81+
push-to-fork: ${{ github.repository_owner != 'espetro' }}
8282
body: |
8383
Auto-generated by `.github/workflows/changelog.yml` after
8484
publishing the **${{ github.ref_name }}** tag.

0 commit comments

Comments
 (0)