Skip to content

Commit

Permalink
fix: workflow ์ˆ˜์ •" (#42)
Browse files Browse the repository at this point in the history
* fix: ๋ฐฐํฌ workflow ์ˆ˜์ •

* fix: ๋ฐฐํฌ workflow ์ˆ˜์ •

* fix: ๋ฐฐํฌ workflow ์ˆ˜์ •
  • Loading branch information
Andrevile authored Jul 6, 2024
1 parent 600517e commit e1e67aa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/deploy-integration.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Push branch & deploy On remote repository only for Vercel
name: Push branch & deploy

on:
workflow_call:
Expand All @@ -15,13 +15,20 @@ on:
ACCESS_TOKEN:
required: true

env:
DEVELOP_REPOSITORY: deploy-sambad-develop
PRODUCTION_REPOSITORY: deploy-sambad
secrets:
ACCESS_TOKEN:
required: true

env:
DEVELOP_REPOSITORY: deploy-sambad-develop
PRODUCTION_REPOSITORY: deploy-sambad

jobs:
variable:
name: set the target STAGE
name: set target
runs-on: ubuntu-latest
outputs:
destination-repository: ${{inputs.stage == 'production' && env.PRODUCTION_REPOSITORY && env.DEVELOP_REPOSITORY}}
Expand All @@ -33,6 +40,9 @@ jobs:
needs: variable
runs-on: ubuntu-latest
container: pandoc/latex
outputs:
destination-repository: ${{needs.variable.outputs.destination-repository}}
target-branch: ${{steps.deploy-information.outputs.target-branch}}
outputs:
destination-repository: ${{needs.variable.outputs.destination-repository}}
target-branch: ${{steps.deploy-information.outputs.target-branch}}
Expand All @@ -51,7 +61,7 @@ jobs:
destination-github-username: 'sambad-adventure'
destination-repository-name: ${{needs.variable.outputs.destination-repository}}
user-email: ${{secrets.EMAIL}}
commit-message: ${{github.event.commits[0].message}}
commit-message: ${{github.event.commits.message}}
target-branch: ${{inputs.stage == 'prodction' && 'main' || 'main' }}
- name: get deploy information
id: deploy-information
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name: Deploy

on:
workflow_dispatch:
inputs:
Expand Down

0 comments on commit e1e67aa

Please sign in to comment.