From 256cf74d1bf967e68d6458f875965be9d2a09dbe Mon Sep 17 00:00:00 2001 From: seung365 Date: Sat, 3 Aug 2024 04:07:26 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20git=20action=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/git-push.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/git-push.yml b/.github/workflows/git-push.yml index a54e90b..4b6bab3 100644 --- a/.github/workflows/git-push.yml +++ b/.github/workflows/git-push.yml @@ -14,24 +14,17 @@ jobs: run: apk add ruby && gem install mustache - name: creates output run: sh ./build.sh - - - name: Get commit message - id: get_commit_message - run: echo "::set-output name=commit_message::$(git log --format=%B -n 1 ${{ github.sha }})" - - name: Pushes to another repository id: push_directory uses: cpina/github-action-push-to-another-repository@main env: API_TOKEN_GITHUB: ${{ secrets.AUTO_KEY }} - COMMIT_MESSAGE: ${{ steps.get_commit_message.outputs.commit_message }} with: source-directory: 'output' destination-github-username: 'seung365' destination-repository-name: 'alphamail-frontend' user-email: ${{ secrets.OFFICIAL_ACCOUNT_EMAIL}} - commit-message: ${{ env.COMMIT_MESSAGE }} + commit-message: ${{ github.event.commits[0].message }} target-branch: main - - name: Test get variable exported by push-to-another-repository run: echo $DESTINATION_CLONED_DIRECTORY