Skip to content

Commit

Permalink
fix: git action 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seung365 committed Aug 2, 2024
1 parent 0396e4a commit 256cf74
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/git-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 256cf74

Please sign in to comment.