fix(workflow): Append PR_NUMBER to env vars
This commit is contained in:
parent
39c0cd4c8f
commit
c3e08bd417
2 changed files with 2 additions and 4 deletions
|
|
@ -62,13 +62,12 @@ 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=${pr_number}" >> $FORGEJO_OUTPUT
|
echo "PR_NUMBER=${pr_number}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Add comment
|
- name: Add comment
|
||||||
id: comment
|
id: comment
|
||||||
if: always()
|
if: always()
|
||||||
env:
|
env:
|
||||||
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 🖌
|
||||||
|
|
|
||||||
|
|
@ -63,13 +63,12 @@ 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}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Add comment
|
- name: Add comment
|
||||||
id: comment
|
id: comment
|
||||||
if: always()
|
if: always()
|
||||||
env:
|
env:
|
||||||
PR_NUMBER: ${{ steps.pr.outputs.stdout }}
|
|
||||||
COMMENT_BODY: |
|
COMMENT_BODY: |
|
||||||
### ${{forge.workflow}}
|
### ${{forge.workflow}}
|
||||||
#### ${{ steps.fmt.outcome == 'success' && '✅' || '❌' }} OpenTofu Format and Style 🖌
|
#### ${{ steps.fmt.outcome == 'success' && '✅' || '❌' }} OpenTofu Format and Style 🖌
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue