Skip to content

Commit

Permalink
Fix output for update-actions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lepapareil committed Feb 6, 2024
1 parent 9a51a32 commit 217b0ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/update-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
UPDATE_ACTIONS_OUTPUT="/tmp/update.output"
echo "UPDATE_ACTIONS_OUTPUT=${UPDATE_ACTIONS_OUTPUT}" | tee -a "${GITHUB_ENV}"
.github/workflows/bin/update_workflow_actions.sh --github-token $GITHUB_TOKEN 2>&1 > "${UPDATE_ACTIONS_OUTPUT}" && actions_update_exit_code=0 || actions_update_exit_code=$?
.github/workflows/bin/update_workflow_actions.sh --github-token $GITHUB_TOKEN 2>&1 | tee -a "${UPDATE_ACTIONS_OUTPUT}" && actions_update_exit_code=0 || actions_update_exit_code=$?
cat "${UPDATE_ACTIONS_OUTPUT}"
if [ ${actions_update_exit_code} -eq 0 ] ; then
UPDATED_ACTIONS_COUNT=$(grep -cE "updated to" "${UPDATE_ACTIONS_OUTPUT}" || true)
Expand Down Expand Up @@ -109,6 +109,7 @@ jobs:
echo " - ❌ A problem occurs when attempting to create new pull request."
exit 1
fi
sed -i -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" "${UPDATE_ACTIONS_OUTPUT}"
pr_comment=$(grep -v "newest" "${UPDATE_ACTIONS_OUTPUT}" || true)
gh pr comment "${NEW_PR_NUMBER}" --body "${pr_comment}" && gh_exit_code=0 || gh_exit_code=$?
if [ ${gh_exit_code} -eq 0 ] ; then
Expand Down

0 comments on commit 217b0ee

Please sign in to comment.