Skip to content

Commit

Permalink
Merge pull request #967 from microsoftgraph/fix/manual-maven-release-…
Browse files Browse the repository at this point in the history
…step

Fix bug in triggering maven central release workflow
  • Loading branch information
Ndiritu authored Jun 4, 2024
2 parents 2969ff3 + 4123710 commit 86694ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/preview-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Maven Preview and Github Release

on:
push:
branches: [dev, support/5.x.x]
branches: [main, support/5.x.x]
paths-ignore:
- '.gradle/wrapper'
- '.gitignore'
Expand All @@ -22,7 +22,7 @@ permissions:

jobs:
maven_Preview:
if: ${{ github.ref == 'refs/heads/dev' }}
if: ${{ github.ref == 'refs/heads/main' }}
environment:
name: maven_central_snapshot
runs-on: ubuntu-latest
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
run: ./gradlew $PREVIEW_TASK

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

0 comments on commit 86694ec

Please sign in to comment.