From 7b79241df04fe38db1923f337c258659f9b6d4c9 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 5 Nov 2024 15:22:56 +0900 Subject: [PATCH] Fixed repository name --- .github/workflows/pr_from_upstream.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr_from_upstream.yml b/.github/workflows/pr_from_upstream.yml index 37eb99c..c6eb2cc 100644 --- a/.github/workflows/pr_from_upstream.yml +++ b/.github/workflows/pr_from_upstream.yml @@ -18,14 +18,14 @@ jobs: - name: Set default values for UPSTREAM_REPO and TARGET_BRANCH if not set run: | # Use the current repository name if UPSTREAM_REPO is not set - : "${UPSTREAM_REPO:=${{ github.event.repository.name }} }" + : "${UPSTREAM_REPO:=${{ github.event.repository.name }}}" : "${TARGET_BRANCH:=master}" - # Format the repository name for flathub + # Format the repository name for flathub, ensure no trailing spaces UPSTREAM_REPO="https://github.com/flathub/${UPSTREAM_REPO}" - echo "UPSTREAM_REPO=$UPSTREAM_REPO" >> $GITHUB_ENV - echo "TARGET_BRANCH=$TARGET_BRANCH" >> $GITHUB_ENV + echo "UPSTREAM_REPO=${UPSTREAM_REPO}" >> $GITHUB_ENV + echo "TARGET_BRANCH=${TARGET_BRANCH}" >> $GITHUB_ENV - name: Sync from Upstream Repository run: | @@ -38,7 +38,6 @@ jobs: git merge --strategy-option theirs --no-edit FETCH_HEAD } - - name: Push changes if there are updates env: BRANCH_NAME: "sync-${{ github.run_id }}" # Temporary branch name for the PR