-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (41 loc) · 1.59 KB
/
on_pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: ON PR/Merge - Check Errors | Build
on:
pull_request:
branches: [ "develop", "main" ]
types: [ "opened", "closed" ]
push:
branches: [ "develop", "main" ]
jobs:
merged:
if: ${{ github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true }}
name: Build Nextjs
uses: ./.github/workflows/front.yml
secrets:
ECR_REPO_DEV_FRONT: ${{ secrets.ECR_REPO_DEV_FRONT }}
OIDC_ROLE: ${{ secrets.OIDC_ROLE }}
AWS_REGION: ${{ secrets.AWS_REGION }}
WEBHOOK: ${{ secrets.WEBHOOK }}
AWS_DEPLOY_APP_NAME: ${{ secrets.AWS_DEPLOY_APP_NAME }}
AWS_DEPLOY_GROUP: ${{ secrets.AWS_DEPLOY_GROUP }}
AWS_DEPLOY_CONFIG: ${{ secrets.AWS_DEPLOY_CONFIG }}
pr:
if: ${{ github.event.pull_request.merged == false && github.event != 'push'}}
name: Error Check
uses: ./.github/workflows/check_err.yml
pushed-1:
if: ${{ github.event.pull_request.merged == false && github.event == 'push'}}
name: Error Check
uses: ./.github/workflows/check_err.yml
pushed-2:
if: ${{ github.event.pull_request.merged == false && github.event == 'push'}}
name: Build Nextjs
uses: ./.github/workflows/front.yml
secrets:
ECR_REPO_DEV_FRONT: ${{ secrets.ECR_REPO_DEV_FRONT }}
OIDC_ROLE: ${{ secrets.OIDC_ROLE }}
AWS_REGION: ${{ secrets.AWS_REGION }}
WEBHOOK: ${{ secrets.WEBHOOK }}
AWS_DEPLOY_APP_NAME: ${{ secrets.AWS_DEPLOY_APP_NAME }}
AWS_DEPLOY_GROUP: ${{ secrets.AWS_DEPLOY_GROUP }}
AWS_DEPLOY_CONFIG: ${{ secrets.AWS_DEPLOY_CONFIG }}
needs: pushed-1