mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-09-14 06:25:54 -04:00
ci(blocking_prs): fix generated comment
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
0474b03626
commit
05356eff69
6
.github/workflows/blocked_prs.yml
vendored
6
.github/workflows/blocked_prs.yml
vendored
@ -236,6 +236,8 @@ jobs:
|
|||||||
id: blocked_comment
|
id: blocked_comment
|
||||||
if: fromJSON(steps.pr_ids.outputs.prs).numBlocking > 0
|
if: fromJSON(steps.pr_ids.outputs.prs).numBlocking > 0
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
env:
|
||||||
|
BLOCKING_DATA: ${{ steps.blocking_data.outputs.data }}
|
||||||
run: |
|
run: |
|
||||||
COMMENT_PATH="$(pwd)/temp_comment_file.txt"
|
COMMENT_PATH="$(pwd)/temp_comment_file.txt"
|
||||||
touch "$COMMENT_PATH"
|
touch "$COMMENT_PATH"
|
||||||
@ -250,7 +252,7 @@ jobs:
|
|||||||
status=$(jq -r 'if .merged then ":heavy_check_mark: Merged" else ":x: Not Merged" end' <<< "$pr_data")
|
status=$(jq -r 'if .merged then ":heavy_check_mark: Merged" else ":x: Not Merged" end' <<< "$pr_data")
|
||||||
type=$(jq -r '.type' <<< "$pr_data")
|
type=$(jq -r '.type' <<< "$pr_data")
|
||||||
echo " - $type #$base_pr $status [(compare)]($compare_url)" >> "$COMMENT_PATH"
|
echo " - $type #$base_pr $status [(compare)]($compare_url)" >> "$COMMENT_PATH"
|
||||||
done < <(jq -c '.[]' <<< "${{steps.blocked_data.outputs.state}}")
|
done < <(jq -c '.[]' <<< "$BLOCKING_DATA")
|
||||||
echo "file_path=${COMMENT_PATH}" >> "$GITHUB_OUTPUT"
|
echo "file_path=${COMMENT_PATH}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: 💬 PR Comment
|
- name: 💬 PR Comment
|
||||||
@ -258,7 +260,7 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: ./.github/actions/create-comment
|
uses: ./.github/actions/create-comment
|
||||||
with:
|
with:
|
||||||
comment: "### PR Dependencies :pushpin:"
|
comment: "<h3> PR Dependencies :pushpin:</h3>"
|
||||||
comment_path: ${{ steps.blocked_comment.outputs.file_path }}
|
comment_path: ${{ steps.blocked_comment.outputs.file_path }}
|
||||||
comment_id: "block_pr_dependencies"
|
comment_id: "block_pr_dependencies"
|
||||||
issue_number: ${{ env.PR_NUMBER }}
|
issue_number: ${{ env.PR_NUMBER }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user