Skip to content

Commit

Permalink
test: shell script sed->awk
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeSeo committed Sep 1, 2023
1 parent b214919 commit ba6207d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/kakao-chat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
pull_request:
types: [review_requested, opened, reopened, ready_for_review]
pull_request_review:
types: [submitted, edited, dismissed]
types: [submitted]

jobs:
build-and-notify:
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Determine event type and trigger action at Windows
if: runner.os == 'Windows'
run: |
if (${{github.event_name}} == 'push') {}
if (${{github.event_name}} == 'push') {
echo "event_name=${{ github.event_name }}" >> $env:GITHUB_OUTPUT
echo "username=${{ github.event.head_commit.author.username }}" >> $env:GITHUB_OUTPUT
echo "actor=${{ github.actor }}" >> $env:GITHUB_OUTPUT
Expand All @@ -55,13 +55,13 @@ jobs:
run: |
if [ ${{github.event_name}} == 'push' ]; then
echo "TITLE=[${{github.actor}}]_${{ github.event_name }}" >> $GITHUB_OUTPUT
echo "DESC=$(echo '${{ github.event.head_commit.message }}' | sed 's/\/ /g')" >> $GITHUB_OUTPUT
echo "DESC=$(echo '${{ github.event.head_commit.message }}' | awk '{printf "%s", $0}')" >> $GITHUB_OUTPUT
elif [ ${{github.event_name}} == 'pull_request' ]; then
echo "TITLE='[${{github.actor}}]_${{ github.event_name }}'" >> $GITHUB_OUTPUT
echo "DESC='${{ github.event.pull_request.title }}'" >> $GITHUB_OUTPUT
echo "DESC=$(echo '${{ github.event.pull_request.title }}' | awk '{printf "%s", $0}')" >> $GITHUB_OUTPUT
elif [ ${{github.event_name}} == 'pull_request_review' ]; then
echo "TITLE='[${{github.actor}}]_${{ github.event_name }}'" >> $GITHUB_OUTPUT
echo "DESC='${{ github.event.pull_request.title }}'" >> $GITHUB_OUTPUT
echo "DESC=$(echo '${{ github.event.pull_request.title }}' | awk '{printf "%s", $0}')" >> $GITHUB_OUTPUT
fi
id: determine_event_type_mac

Expand Down

0 comments on commit ba6207d

Please sign in to comment.