From 9280f5a11669b150610b85fc078ae99af503787b Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 8 Nov 2024 09:35:46 +0900 Subject: [PATCH] PR: added a step to unshallow the clone --- .github/workflows/pr_from_upstream.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/pr_from_upstream.yml b/.github/workflows/pr_from_upstream.yml index 6721d44..dcfd2ed 100644 --- a/.github/workflows/pr_from_upstream.yml +++ b/.github/workflows/pr_from_upstream.yml @@ -15,6 +15,16 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 # Retrieve full history to allow merging + - name: Configure the upstream + run: | + CURRENT_BRANCH="${{ github.ref_name }}" + + git remote add upstream "https://github.com/flathub/${{ github.event.repository.name }}" + git fetch upstream + git fetch origin + + git branch --set-upstream-to=upstream/$CURRENT_BRANCH $CURRENT_BRANCH + - name: Generate a token for Rekku if: ${{ github.repository == 'RetroDECK/RetroDECK' }} id: generate-rekku-token