chore(workflow): Output PR number correctly

This commit is contained in:
Peter 2026-02-19 22:18:22 +01:00
parent d7330ebac5
commit 9ced54ec3b
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg
2 changed files with 2 additions and 4 deletions

View file

@ -1,7 +1,6 @@
--- ---
name: Tofu Apply k8s-wheatley name: Tofu Apply k8s-wheatley
on: on:
workflow_call:
push: push:
branches: branches:
- main - main
@ -63,13 +62,13 @@ jobs:
"${{ forge.api_url }}/repos/${{ forge.repository }}/commits/${{ forge.sha }}/pull" \ "${{ forge.api_url }}/repos/${{ forge.repository }}/commits/${{ forge.sha }}/pull" \
| jq -r '.number // empty') | jq -r '.number // empty')
echo "${pr_number}" echo "pr_number=${pr_number}" >> $FORGEJO_OUTPUT
- name: Add comment - name: Add comment
id: comment id: comment
if: always() if: always()
env: env:
PR_NUMBER: ${{ steps.pr.outputs.stdout }} PR_NUMBER: ${{ steps.pr.outputs.pr_number }}
COMMENT_BODY: | COMMENT_BODY: |
### ${{forge.workflow}} ### ${{forge.workflow}}
#### ${{ steps.fmt.outcome == 'success' && '✅' || '❌' }} OpenTofu Format and Style 🖌 #### ${{ steps.fmt.outcome == 'success' && '✅' || '❌' }} OpenTofu Format and Style 🖌

View file

@ -2,7 +2,6 @@
name: Tofu Plan k8s-wheatley name: Tofu Plan k8s-wheatley
on: on:
workflow_dispatch: workflow_dispatch:
workflow_call:
pull_request: pull_request:
branches: branches:
- main - main