Skip to content

Commit

Permalink
Merge pull request #13 from psychology50/test
Browse files Browse the repository at this point in the history
test: shell script aws 명령어 치환 && 문자열 묶기
  • Loading branch information
psychology50 authored Sep 1, 2023
2 parents 8848641 + 2c0fa67 commit 9b66a8f
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/kakao-chat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,26 @@ 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 }}' | awk '{printf "%s", $0}')" >> $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=$(echo '${{ github.event.pull_request.title }}' | awk '{printf "%s", $0}')" >> $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=$(echo '${{ github.event.pull_request.title }}' | awk '{printf "%s", $0}')" >> $GITHUB_OUTPUT
echo "DESC='$(echo '${{ github.event.pull_request.title }}' | awk '{printf "%s", $0}')'" >> $GITHUB_OUTPUT
fi
id: determine_event_type_mac

- name: Get Event Name from macOS
- name: run kakao-chat
if: runner.os == 'macOS'
run: |
echo "TITLE : ${{ steps.determine_event_type_mac.outputs.TITLE }}"
echo "DESC : ${{ steps.determine_event_type_mac.outputs.DESC }}"
node app.js ${{ steps.determine_event_type_mac.outputs.TITLE }} ${{ steps.determine_event_type_mac.outputs.DESC }}
env:
KAKAO_CLIENT: ${{ secrets.KAKAO_CLIENT }}
KAKAO_EMAIL: ${{ secrets.KAKAO_EMAIL }}
KAKAO_PASSWORD: ${{ secrets.KAKAO_PASSWORD }}
KAKAO_TEMPLATE_ID: 97232
KAKAO_SENDER_TEMPLATE_ID: 97280
KAKAO_REDIRECT_URL: http://localhost:3000/oauth/kakao/callback


0 comments on commit 9b66a8f

Please sign in to comment.