Skip to content

Commit

Permalink
Test: cd자동배포 테스트 (2개 이상 리포지토리)
Browse files Browse the repository at this point in the history
Test: cd자동배포 테스트 (2개 이상 리포지토리)
  • Loading branch information
BearHumanS authored Feb 19, 2024
2 parents 0c13634 + 25266a0 commit 6fe618f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ jobs:
run: apk add ruby && gem install mustache
- name: creates output
run: sh ./build.sh
- name: Pushes to another repository
id: push_directory
- name: Pushes to Team_side_project_pokemon
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.HUN_TOKEN }}
Expand All @@ -26,5 +25,16 @@ jobs:
user-email: ${{ secrets.HUN_EMAIL }}
commit-message: ${{ github.event.commits[0].message }}
target-branch: main
- name: Pushes to Pokehub
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.CDM_TOKEN }}
with:
source-directory: 'output'
destination-github-username: Dongmin
destination-repository-name: Pokehub
user-email: ${{ secrets.CDM_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 6fe618f

Please sign in to comment.