From b20d64c4fdd4f5004c4dde0cb585e6b730e69531 Mon Sep 17 00:00:00 2001 From: Geonetci Date: Tue, 14 May 2024 13:14:22 +1200 Subject: [PATCH] fix: correct api URL URL needed suffix --- .github/workflows/sync-actions-forks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-actions-forks.yml b/.github/workflows/sync-actions-forks.yml index f1cee17..af30302 100644 --- a/.github/workflows/sync-actions-forks.yml +++ b/.github/workflows/sync-actions-forks.yml @@ -25,6 +25,6 @@ jobs: GH_TOKEN: ${{ secrets.GH_CI_USER_TOKEN }} run: | gh repo list geonet --no-archived --fork --json nameWithOwner --jq '.[].nameWithOwner' \ - | xargs -I{} gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/{} --template '{{.full_name}},{{.default_branch}}{{"\n"}}' \ + | xargs -I{} gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/{}/merge-upstream --template '{{.full_name}},{{.default_branch}}{{"\n"}}' \ | xargs -I{} hack/update-forks.sh {} shell: bash