Skip to content

Commit

Permalink
fix: git-push.yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seung365 committed Dec 5, 2024
1 parent a267f27 commit 1731400
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/git-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1731400

Please sign in to comment.