Skip to content

Commit

Permalink
Merge pull request #48 from rak-phillip/bugfix/backport-merge-conflict
Browse files Browse the repository at this point in the history
[Workflow] Trying to capture an error message
  • Loading branch information
rak-phillip authored Feb 27, 2024
2 parents b4323b0 + 4c1a115 commit 8eb2a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/port-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
git config --global user.name "Rancher Dashboard Port Bot"
git checkout -b $BRANCH
if ! git am -3 "$PATCH_FILE" 2>error.log; then
if ! git am -3 "$PATCH_FILE" > error.log 2>&1; then
ERROR_MESSAGE=$(< error.log)
FORMATTED_ERROR_MESSAGE=$(printf "\n\`\`\`\n%s\n\`\`\`" "$ERROR_MESSAGE")
gh issue comment ${ORIGINAL_ISSUE_NUMBER} --body "Not creating port PR, there was an error running git am -3: $FORMATTED_ERROR_MESSAGE"
Expand Down

0 comments on commit 8eb2a6e

Please sign in to comment.