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 9f2f2ff commit 0034a8e
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/git-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,27 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: pandoc/latex
steps:
- uses: actions/checkout@v3
- name: Install mustache (to update the date)
run: apk add ruby && gem install mustache
- name: creates output
run: sh ./build.sh
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Prepare output directory
run: |
mkdir -p output
cp -r build/* output/
- 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'
destination-github-username: seung365
destination-repository-name: alphamail-frontend
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 0034a8e

Please sign in to comment.