From a3c86dec3fad27ca5da07ca4e6a670ff76424407 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Sun, 2 Nov 2025 10:15:27 -0500 Subject: [PATCH] Var fix. --- action.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index ea0b932..837c42b 100644 --- a/action.yml +++ b/action.yml @@ -113,9 +113,12 @@ runs: - name: Set unified PR number output id: set-pr-output shell: bash + env: + EXISTING_PR: ${{ steps.check-opened-pr-step.outputs.pr_number }} + CREATED_PR: ${{ steps.pr-creation.outputs.created_pr_index }} run: | - # Use existing PR number if present, otherwise the newly created PR - if [ -n "${{ steps.check-opened-pr-step.outputs.pr_number }}" ]; then - echo "pr_number=${{ steps.check-opened-pr-step.outputs.pr_number }}" >> $GITHUB_OUTPUT + if [ -n "$EXISTING_PR" ]; then + echo "pr_number=$EXISTING_PR" >> $GITHUB_OUTPUT else - echo "pr_number=${{ steps.pr-creation.outputs.created_pr_index }}" >> $GITHUB_OUTPUT + echo "pr_number=$CREATED_PR" >> $GITHUB_OUTPUT +