From a29bca7f0074457679bc1709d384abdbc25ba103 Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Wed, 7 Aug 2024 16:52:18 +0200 Subject: [PATCH] chore: CI: placate linter --- .github/workflows/rebase-on-comment.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rebase-on-comment.yml b/.github/workflows/rebase-on-comment.yml index 6d2fcffe0b..f4f94c7809 100644 --- a/.github/workflows/rebase-on-comment.yml +++ b/.github/workflows/rebase-on-comment.yml @@ -18,12 +18,13 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - PR_NUMBER=${{ github.event.issue.number }} + PR_NUMBER="${{ github.event.issue.number }}" API_URL="https://api.github.com/repos/${{ github.repository }}/pulls/$PR_NUMBER" - PR_DETAILS=$(curl -s -H "Authorization: token $GITHUB_TOKEN" $API_URL) + PR_DETAILS="$(curl -s -H "Authorization: token $GITHUB_TOKEN" $API_URL)" - BASE_REF=$(echo $PR_DETAILS | jq -r .base.ref) + BASE_REF="$(echo $PR_DETAILS | jq -r .base.ref)" + git checkout -b working-branch git fetch origin $BASE_REF git rebase origin/$BASE_REF - git push --force-with-lease \ No newline at end of file + git push origin refs/pull/${{ github.event.issue.number }}/head --force-with-lease \ No newline at end of file