Skip to content

Commit

Permalink
squash merge 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ewei068 committed Sep 28, 2024
1 parent 89f30c5 commit 17ff0cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/discord-webook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
- name: Get embed details
id: embed_details
run: |
echo "COMMIT_MESSAGE=$(git log --no-merges -1 --pretty="commit %h: %B")" >> $GITHUB_ENV
COMMIT_MESSAGE=$(git log --no-merges -1 --pretty="commit %h: %B")"
SAFE_COMMIT_MESSAGE=$(echo "$COMMIT_MESSAGE" | tr -d '\r\n' | sed 's/[*://]/_/g')
echo "COMMIT_MESSAGE=$SAFE_COMMIT_MESSAGE" >> $GITHUB_ENV
if [ "${{ github.event_name }}" == "pull_request" ]; then
if [ "${{ github.event.action }}" == "opened" ] || [ "${{ github.event.action }}" == "reopened" ]; then
echo "EMBED_TITLE=Pull Request: ${{ github.event.pull_request.title }} (#${{ github.event.pull_request.number }}) Opened" >> $GITHUB_ENV
Expand Down

0 comments on commit 17ff0cf

Please sign in to comment.