Skip to content

Commit 917741a

Browse files
committed
fx
1 parent f89ea6e commit 917741a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/publish-operatorhub.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,7 @@ jobs:
197197
--body-file /tmp/pr-body.md)
198198
199199
echo "Pull request created: $PR_URL"
200-
echo "pr_url=$PR_URL" >> $GITHUB_OUTPUT
201-
202-
# Extract PR number from URL
203-
PR_NUMBER=$(echo "$PR_URL" | grep -oP '\d+$')
204-
echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT
200+
echo "PR_URL=$PR_URL" >> $GITHUB_ENV
205201
206202
- name: Upload bundle artifact
207203
uses: actions/upload-artifact@v4
@@ -222,7 +218,7 @@ jobs:
222218
echo "- **Operator Image**: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_REPO }}/${{ env.OPERATOR_IMAGE_NAME }}:v${{ env.VERSION }}" >> $GITHUB_STEP_SUMMARY
223219
224220
if [ "${{ github.event.inputs.create_pr }}" = "true" ]; then
225-
echo "- **Status**: PR created to OperatorHub - ${{ env.pr_url }}" >> $GITHUB_STEP_SUMMARY
221+
echo "- **Status**: PR created to OperatorHub - ${{ env.PR_URL }}" >> $GITHUB_STEP_SUMMARY
226222
else
227223
echo "- **Status**: Bundle generated (PR creation disabled)" >> $GITHUB_STEP_SUMMARY
228224
fi

0 commit comments

Comments
 (0)