There was an error while loading. Please reload this page.
1 parent df5b439 commit 215813cCopy full SHA for 215813c
1 file changed
.github/workflows/update.yml
@@ -51,7 +51,7 @@ jobs:
51
- name: Create fork
52
# no-op if the repository is already forked
53
run: |
54
- FORK="$(gh repo fork --clone=false --default-branch-only 2>&1 | awk '{print $1}' | sed 's|^https://github.com/||')"
+ FORK="$(gh api repos/{owner}/{repo}/forks --method POST -f default_branch_only=true --jq .full_name)"
55
echo "FORK=${FORK}" >> "$GITHUB_ENV"
56
env:
57
GH_TOKEN: ${{ secrets.SYNC_TOKEN }}
0 commit comments