Skip to content

Commit 73cca13

Browse files
authored
Fix YAML syntax error by inlining PARENT_BRANCH expression
1 parent ec2188d commit 73cca13

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/maven.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ jobs:
1818
build:
1919
runs-on: macos-14
2020
env:
21-
PARENT_BRANCH: ${{
22-
github.event_name == 'pull_request' && github.event.pull_request.base.ref
23-
|| (github.ref_name == 'master' && 'main')
24-
|| github.ref_name
25-
}}
21+
PARENT_BRANCH: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || (github.ref_name == 'master' && 'main') || github.ref_name }}
2622
timeout-minutes: 15
2723
steps:
2824
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)