Skip to content

Commit

Permalink
ci: replace comment_includes with comment_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ferferga committed Dec 14, 2022
1 parent c9f119c commit a407bbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
with:
GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }}
message: ${{ needs.compose-comment.outputs.msg }}
comment_includes: ${{ needs.compose-comment.outputs.marker }}
comment_tag: ${{ needs.compose-comment.outputs.marker }}

project:
name: Project board 📊
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }}
message: ${{ needs.compose-comment.outputs.msg }}
pr_number: ${{ needs.pr-context.outputs.pr_number }}
comment_includes: ${{ needs.compose-comment.outputs.marker }}
comment_tag: ${{ needs.compose-comment.outputs.marker }}
7 changes: 1 addition & 6 deletions .github/workflows/job_messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,14 @@ on:
value: ${{ jobs.msg.outputs.msg }}
marker:
description: Hidden marker to detect PR comments composed by the bot
value: ${{ jobs.msg.outputs.comment_marker }}
value: 'CFPages-deployment'

jobs:
msg:
name: Deployment status
runs-on: ubuntu-latest
env:
COMMENT_MARKER: '<!--- CFPages deployment marker --->'
outputs:
msg: ${{ env.msg }}
comment_marker: ${{ env.COMMENT_MARKER }}

steps:
- name: Compose message 📃
Expand All @@ -62,8 +59,6 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY
echo "$BUILD_WORKFLOW_RUN" >> $GITHUB_STEP_SUMMARY
echo "$COMMENTING_WORKFLOW_RUN" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "$COMMENT_MARKER" >> $GITHUB_STEP_SUMMARY
COMPOSED_MSG=$(cat $GITHUB_STEP_SUMMARY)
echo "msg<<EOF" >> $GITHUB_ENV
echo "$COMPOSED_MSG" >> $GITHUB_ENV
Expand Down

0 comments on commit a407bbc

Please sign in to comment.