Skip to content

Commit

Permalink
Merge pull request #54 from Beside-Potenday/seungbeom
Browse files Browse the repository at this point in the history
fix: git action 수정
  • Loading branch information
seung365 authored Aug 2, 2024
2 parents 8d1f80f + 256cf74 commit 51c4c8b
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 51c4c8b

Please sign in to comment.