Skip to content

Commit

Permalink
build: Restrict deployment workflow only on merges to main repository
Browse files Browse the repository at this point in the history
  • Loading branch information
cussle committed Nov 14, 2024
1 parent 6cc7c5f commit 6d8e60d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
# push:
# branches: [ "weekly/11"]
pull_request:
branches: [ "Master" ]
# branches: [ "Master" ]
types: [closed]

# AWS 관련 값 변수로 설정
Expand All @@ -18,6 +18,7 @@ env:
jobs:
deploy:
runs-on: ubuntu-latest
if: github.repository == 'kakao-tech-campus-2nd-step3/Team28_BE' && github.event.pull_request.merged == true
permissions:
contents: read
packages: write
Expand Down

0 comments on commit 6d8e60d

Please sign in to comment.