From 02fd82fb4fa114e52f9c926b61dec877ebfaf880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=ED=9D=AC=EC=A7=84?= <103185302+heejinnn@users.noreply.github.com> Date: Sun, 10 Sep 2023 17:00:43 +0900 Subject: [PATCH 1/6] Create test --- test | 1 + 1 file changed, 1 insertion(+) create mode 100644 test diff --git a/test b/test new file mode 100644 index 00000000..9daeafb9 --- /dev/null +++ b/test @@ -0,0 +1 @@ +test From 8040ee7bf2945e01d10e7f63939e7577b5ca5c63 Mon Sep 17 00:00:00 2001 From: JaeSeo Yang <96044622+psychology50@users.noreply.github.com> Date: Sun, 17 Sep 2023 16:57:36 +0900 Subject: [PATCH 2/6] =?UTF-8?q?runner=20=EB=93=B1=EB=A1=9D=20&&=20window?= =?UTF-8?q?=20shell=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/kakao_ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/kakao_ci.yml b/.github/workflows/kakao_ci.yml index 1866805c..c1ba1164 100644 --- a/.github/workflows/kakao_ci.yml +++ b/.github/workflows/kakao_ci.yml @@ -18,6 +18,27 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Determine event type and trigger action at Windows + if: runner.os == 'Windows' + run: | + if ( "${{github.event_name}}" -eq "push" ) { + $TITLE="[${{github.actor}}]_${{ github.event_name }}" + $DESC="${{ github.event.head_commit.message }}".split("`n")[0] + echo "TITLE=$TITLE" >> $env:GITHUB_OUTPUT + echo "DESC=$DESC" >> $env:GITHUB_OUTPUT + } elseif ( "${{github.event_name}}" -eq "pull_request" ) { + $TITLE="[${{github.actor}}]_${{ github.event_name }}" + $DESC="${{ github.event.pull_request.title }}".split("`n")[0] + echo "TITLE=$TITLE" >> $env:GITHUB_OUTPUT + echo "DESC=$DESC" >> $env:GITHUB_OUTPUT + } elseif ( "${{github.event_name}}" -eq "pull_request_review" ) { + $TITLE="${{github.actor}}]_${{ github.event_name }}" + $DESC="${{ github.event.pull_request.title }}".split("`n")[0] + echo "TITLE=$TITLE" >> $env:GITHUB_OUTPUT + echo "DESC=$DESC" >> $env:GITHUB_OUTPUT + } + id: determine_event_type_windows + - name: Determine event type and trigger action at macOS if: runner.os == 'macOS' run: | @@ -33,6 +54,19 @@ jobs: fi id: determine_event_type_mac + - name: run kakao-chat + if: runner.os == 'Windows' + uses: psychology50/kakao-chat-ci@main + 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 + TITLE: ${{ steps.determine_event_type_mac.outputs.TITLE }} + DESC: ${{ steps.determine_event_type_mac.outputs.DESC }} + - name: run kakao-chat if: runner.os == 'macOS' uses: psychology50/kakao-chat-ci@main From 7c73ed1cf87d413e0b6b693b860e3a3b0f283d24 Mon Sep 17 00:00:00 2001 From: JaeSeo Yang <96044622+psychology50@users.noreply.github.com> Date: Sun, 17 Sep 2023 17:52:53 +0900 Subject: [PATCH 3/6] Update kakao_ci.yml --- .github/workflows/kakao_ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/kakao_ci.yml b/.github/workflows/kakao_ci.yml index c1ba1164..438aa6a5 100644 --- a/.github/workflows/kakao_ci.yml +++ b/.github/workflows/kakao_ci.yml @@ -64,8 +64,8 @@ jobs: KAKAO_TEMPLATE_ID: 97232 KAKAO_SENDER_TEMPLATE_ID: 97280 KAKAO_REDIRECT_URL: http://localhost:3000/oauth/kakao/callback - TITLE: ${{ steps.determine_event_type_mac.outputs.TITLE }} - DESC: ${{ steps.determine_event_type_mac.outputs.DESC }} + TITLE: ${{ steps.determine_event_type_windows.outputs.TITLE }} + DESC: ${{ steps.determine_event_type_windows.outputs.DESC }} - name: run kakao-chat if: runner.os == 'macOS' From e177159bd57676b0ad1d248a49b97d94c193669a Mon Sep 17 00:00:00 2001 From: JaeSeo Yang <96044622+psychology50@users.noreply.github.com> Date: Mon, 18 Sep 2023 18:10:06 +0900 Subject: [PATCH 4/6] Setup Chrome --- .github/workflows/kakao_ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/kakao_ci.yml b/.github/workflows/kakao_ci.yml index 438aa6a5..48021fb8 100644 --- a/.github/workflows/kakao_ci.yml +++ b/.github/workflows/kakao_ci.yml @@ -18,6 +18,9 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Setup Chrome + uses: browser-actions/setup-chrome@v1 + - name: Determine event type and trigger action at Windows if: runner.os == 'Windows' run: | From df57f110ac760d51f81099ff96c97848a3d24540 Mon Sep 17 00:00:00 2001 From: JaeSeo Yang <96044622+psychology50@users.noreply.github.com> Date: Mon, 18 Sep 2023 18:24:42 +0900 Subject: [PATCH 5/6] Delete Setup Chrome --- .github/workflows/kakao_ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/kakao_ci.yml b/.github/workflows/kakao_ci.yml index 48021fb8..438aa6a5 100644 --- a/.github/workflows/kakao_ci.yml +++ b/.github/workflows/kakao_ci.yml @@ -18,9 +18,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Setup Chrome - uses: browser-actions/setup-chrome@v1 - - name: Determine event type and trigger action at Windows if: runner.os == 'Windows' run: | From eef4edb43b404d5baf3fabd24e8aec75c2401aa7 Mon Sep 17 00:00:00 2001 From: JaeSeo Yang <96044622+psychology50@users.noreply.github.com> Date: Tue, 19 Sep 2023 19:10:57 +0900 Subject: [PATCH 6/6] =?UTF-8?q?#15=20kakao-ci=20yml=20window=20&=20macOS?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/kakao_ci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/kakao_ci.yml b/.github/workflows/kakao_ci.yml index 438aa6a5..48a01299 100644 --- a/.github/workflows/kakao_ci.yml +++ b/.github/workflows/kakao_ci.yml @@ -18,6 +18,9 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Setup Chrome + uses: browser-actions/setup-chrome@v1 + - name: Determine event type and trigger action at Windows if: runner.os == 'Windows' run: | @@ -37,6 +40,8 @@ jobs: echo "TITLE=$TITLE" >> $env:GITHUB_OUTPUT echo "DESC=$DESC" >> $env:GITHUB_OUTPUT } + $CHROME_PATH = (Join-Path (Join-Path (Split-Path (Split-Path "${{github.workspace}}") -Parent) "_tool\chromium\latest\x64") "chrome.exe") + echo "CHROME_PATH=$CHROME_PATH" >> $env:GITHUB_OUTPUT id: determine_event_type_windows - name: Determine event type and trigger action at macOS @@ -52,9 +57,10 @@ jobs: echo "TITLE='[${{github.actor}}]_${{ github.event_name }}'" >> $GITHUB_OUTPUT echo "DESC='$(echo '${{ github.event.pull_request.title }}' | awk '{printf "%s", $0}')'" >> $GITHUB_OUTPUT fi + echo "CHROME_PATH='$(echo "$(dirname "$(dirname "${GITHUB_WORKSPACE}")")/_tool/chromium/latest/x64/Chromium.app/Contents/MacOS/Chromium")'" >> $GITHUB_OUTPUT id: determine_event_type_mac - - name: run kakao-chat + - name: run kakao-chat at Windows if: runner.os == 'Windows' uses: psychology50/kakao-chat-ci@main env: @@ -66,8 +72,9 @@ jobs: KAKAO_REDIRECT_URL: http://localhost:3000/oauth/kakao/callback TITLE: ${{ steps.determine_event_type_windows.outputs.TITLE }} DESC: ${{ steps.determine_event_type_windows.outputs.DESC }} + CHROME_PATH: ${{ steps.determine_event_type_windows.outputs.CHROME_PATH }} - - name: run kakao-chat + - name: run kakao-chat at macOS if: runner.os == 'macOS' uses: psychology50/kakao-chat-ci@main env: @@ -79,6 +86,4 @@ jobs: KAKAO_REDIRECT_URL: http://localhost:3000/oauth/kakao/callback TITLE: ${{ steps.determine_event_type_mac.outputs.TITLE }} DESC: ${{ steps.determine_event_type_mac.outputs.DESC }} - - - + CHROME_PATH: ${{ steps.determine_event_type_mac.outputs.CHROME_PATH }}