chore(workflow): Output PR number correctly
This commit is contained in:
parent
d7330ebac5
commit
9ced54ec3b
2 changed files with 2 additions and 4 deletions
|
|
@ -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 🖌
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue