Skip to content

Commit

Permalink
Wrong branch for bumping version to snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
sbglasius committed Sep 17, 2024
1 parent 5b0f491 commit ad179ff
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
uses: gradle/actions/setup-gradle@v4
- name: Debug
run: |
echo "NOT running on ACT: ${{ !env.ACT }}"
- name: Publish to Sonatype OSSRH
if: ${{ env.ACT }} # prevent deploy using gh act
if: ${{ !env.ACT }} # prevent deploy using gh act
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
Expand All @@ -67,6 +70,9 @@ jobs:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Get branch names.
id: branch-names
uses: tj-actions/branch-names@v8
- uses: actions/setup-java@v4
with:
java-version: 11
Expand All @@ -82,7 +88,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
author_name: ${{ vars.GIT_USER_NAME }}
author_email: $${ vars.GIT_USER_EMAIL }}
branch: master
branch: ${{ steps.branch-names.outputs.current_branch }}
message: Set project version to ${{ env.NEXT_VERSION }}-SNAPSHOT
documenation:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ad179ff

Please sign in to comment.