Skip to content

Commit 215813c

Browse files
committed
🤖 updated file(s)
1 parent df5b439 commit 215813c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Create fork
5252
# no-op if the repository is already forked
5353
run: |
54-
FORK="$(gh repo fork --clone=false --default-branch-only 2>&1 | awk '{print $1}' | sed 's|^https://github.com/||')"
54+
FORK="$(gh api repos/{owner}/{repo}/forks --method POST -f default_branch_only=true --jq .full_name)"
5555
echo "FORK=${FORK}" >> "$GITHUB_ENV"
5656
env:
5757
GH_TOKEN: ${{ secrets.SYNC_TOKEN }}

0 commit comments

Comments
 (0)