Skip to content

Commit

Permalink
Fix: develop에 대한 pull_request 조건 추가
Browse files Browse the repository at this point in the history
develop에 대한 closed된 pull request를 조건으로 추가
jobs 안에 if를 이용해 push event이거나 pull_request event면서 merge가 true인 경우만 동작하도록 함
  • Loading branch information
nonaninona committed Feb 18, 2024
1 parent 62c5ff2 commit b985008
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
push:
branches: [ "develop" ]
pull_request:
branches: [ ]
branches: [ "develop" ]
types: [ closed ]

permissions:
contents: read

jobs:
build:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -31,6 +33,7 @@ jobs:
AIPROMPT_LULU: ${{ secrets.AIPROMPT_LULU }}

docker-build:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest
needs: build
steps:
Expand Down

0 comments on commit b985008

Please sign in to comment.