From 1731400a4f219dd18908bb82da9548aa2ac160eb Mon Sep 17 00:00:00 2001 From: beom Date: Thu, 5 Dec 2024 12:13:03 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20git-push.yml=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 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/git-push.yml b/.github/workflows/git-push.yml index 9806df3..0ac5432 100644 --- a/.github/workflows/git-push.yml +++ b/.github/workflows/git-push.yml @@ -10,25 +10,34 @@ jobs: container: pandoc/latex steps: - uses: actions/checkout@v2 + - name: Install mustache (to update the date) run: apk add ruby && gem install mustache + - name: creates output run: sh ./build.sh + - name: Debug output directory run: | + echo "Current directory contents:" ls -al - ls -al output + echo "Build directory contents (if exists):" + ls -al build || echo "Build directory does not exist!" + echo "Output directory contents (if exists):" + ls -al output || echo "Output directory does not exist!" + - name: Pushes to another repository id: push_directory uses: cpina/github-action-push-to-another-repository@main env: API_TOKEN_GITHUB: ${{ secrets.AUTO_KEY }} with: - source-directory: 'output' # 빌드 결과물이 생성된 경로로 수정 필요 + source-directory: 'output' # build 또는 output에 맞게 변경 destination-github-username: 'seung365' destination-repository-name: 'alphamail-frontend' user-email: ${{ secrets.OFFICIAL_ACCOUNT_EMAIL}} 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