Skip to content

Commit

Permalink
Merge pull request codeforjapan#580 from ayuki-joto/fix/deploy-action
Browse files Browse the repository at this point in the history
fix: deploy action
  • Loading branch information
ayuki-joto authored Nov 14, 2023
2 parents ebf92e1 + 1c7ba82 commit 823a2c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:

create-deploy-env:
runs-on: ubuntu-latest
needs:
- release
outputs:
deploy-env: ${{ steps.output-deploy-env.outputs.deploy-env }}

Expand Down Expand Up @@ -54,6 +56,7 @@ jobs:
aws-ecr-repo-name: ${{ secrets.AWS_ECR_REPO_NAME }}

stg:
if: ${{ !needs.release.outputs.created }}
needs:
- create-deploy-env
- release
Expand All @@ -68,8 +71,8 @@ jobs:
if: ${{ needs.release.outputs.created }}
needs:
- create-deploy-env
- build
- release
- stg
uses: ./.github/workflows/_deploy.yaml
with:
image-tag: ${{ needs.release.outputs.tag_name }}
Expand Down

0 comments on commit 823a2c0

Please sign in to comment.