Skip to content

Commit

Permalink
📝 improve messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dudeofawesome committed May 29, 2024
1 parent b7cce75 commit e37c962
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/cybersource-release-poll.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
echo "latest_version=$latest_version" >> "$GITHUB_OUTPUT"
echo "branch_name=$branch_name" >> "$GITHUB_OUTPUT"
echo "Upgrade to Cybersource SDK v$latest_version available." >> "$GITHUB_STEP_SUMMARY"
echo "Upgrade to [Cybersource SDK v$latest_version](https://github.com/CyberSource/cybersource-rest-client-node/releases/tag/$latest_version) available." >> "$GITHUB_STEP_SUMMARY"
exit 0
fi
Expand Down Expand Up @@ -114,8 +114,14 @@ jobs:
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
run: |-
body="$(cat << EOF
Upgrades to [Cybersource SDK v$latest_version](https://github.com/CyberSource/cybersource-rest-client-node/releases/tag/$latest_version).
Created via [Github Actions](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).
EOF
)"
gh pr create \
--base "${{ github.event.repository.default_branch }}" \
--head "$branch_name" \
--title "⬆️ Update Cybersource SDK to v$latest_version" \
--body "Created by Github action"
--body "$body"

0 comments on commit e37c962

Please sign in to comment.