Skip to content

Commit 86694ec

Browse files
authored
Merge pull request #967 from microsoftgraph/fix/manual-maven-release-step
Fix bug in triggering maven central release workflow
2 parents 2969ff3 + 4123710 commit 86694ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/preview-and-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Maven Preview and Github Release
22

33
on:
44
push:
5-
branches: [dev, support/5.x.x]
5+
branches: [main, support/5.x.x]
66
paths-ignore:
77
- '.gradle/wrapper'
88
- '.gitignore'
@@ -22,7 +22,7 @@ permissions:
2222

2323
jobs:
2424
maven_Preview:
25-
if: ${{ github.ref == 'refs/heads/dev' }}
25+
if: ${{ github.ref == 'refs/heads/main' }}
2626
environment:
2727
name: maven_central_snapshot
2828
runs-on: ubuntu-latest
@@ -54,7 +54,7 @@ jobs:
5454
run: ./gradlew $PREVIEW_TASK
5555

5656
maven_Release:
57-
if: startsWith(github.ref, 'refs/tags/') && ${{ github.actor == 'release-please[bot]' }}
57+
if: ${{ startsWith(github.ref, 'refs/tags/') && github.actor == 'release-please[bot]' }}
5858
environment:
5959
name: maven_central_release
6060
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)