Skip to content

Commit e328214

Browse files
yarikopticclaude
andcommitted
Skip forks, use dynamic owner/project in git-bug sync workflow
- Add fork guard so scheduled sync doesn't run in forks - Replace hardcoded dandi/dandi-cli with GITHUB_REPOSITORY_OWNER and GITHUB_REPOSITORY shell parameter expansion Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0f9c519 commit e328214

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/sync-git-bug.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ permissions:
1212

1313
jobs:
1414
sync:
15+
# Only run in the upstream repo, not in forks
16+
if: ${{ !github.event.repository.fork }}
1517
runs-on: ubuntu-latest
1618
steps:
1719
- name: Checkout
@@ -61,8 +63,8 @@ jobs:
6163
git-bug bridge new \
6264
--name=github \
6365
--target=github \
64-
--owner=dandi \
65-
--project=dandi-cli \
66+
--owner="${GITHUB_REPOSITORY_OWNER}" \
67+
--project="${GITHUB_REPOSITORY#*/}" \
6668
--token="$GH_TOKEN" \
6769
--non-interactive
6870

0 commit comments

Comments
 (0)