Skip to content

Commit

Permalink
Modifying job execution conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
charlestian23 committed Mar 29, 2024
1 parent e32e333 commit 211fab1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/java-autoformat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Java Code Auto Format
on: pull_request

jobs:
format_dev:
format_master:
if: |
github.event.pull_request.base.ref == 'dev' &&
github.event.pull_request.base.ref == 'master' &&
github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:

format_other_branches:
if: |
github.event.pull_request.base.ref != 'dev' &&
github.event.pull_request.base.ref == 'dev' &&
github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 211fab1

Please sign in to comment.