Skip to content

Commit

Permalink
Merge pull request #25 from Central-MakeUs/Inoansta-patch-1
Browse files Browse the repository at this point in the history
fix: github action 오류 yaml 파일 수정
  • Loading branch information
perfumeplaylist authored Feb 9, 2025
2 parents e270386 + 6d7e0cc commit 0920d25
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
51 changes: 26 additions & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
name: git push into another repo to deploy to vercel

on:
push:
branches: main
pull-request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
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: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }}
with:
source-directory: "output"
destination-github-username: "Inoansta"
destination-repository-name: "Spark-Front"
user-email: ${{ secrets.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
build:
runs-on: ubuntu-latest
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: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }}
with:
source-directory: "output"
destination-github-username: "Inoansta"
destination-repository-name: "Spark-Front"
user-email: ${{ secrets.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
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
cd ../
mkdir -p output
cp -R ./my-project/* ./output # 프로젝트 폴더 복사
cp -R ./output ./my-project/ # 원본 프로젝트에도 복사
cp -R ./Spark-Front/* ./output # 프로젝트 폴더 복사
cp -R ./output ./Spark-Front/ # 원본 프로젝트에도 복사

0 comments on commit 0920d25

Please sign in to comment.