diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 338e61d..3d64e38 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -64,13 +64,17 @@ jobs: ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} - - name: Update README for ${{ env.RELEASE_VERSION }} - run: ./.github/version.sh "${RELEASE_VERSION}" + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT + id: extract_branch - - uses: EndBug/add-and-commit@v9 + - name: Commit changes to README to ${{ env.branch }} + uses: EndBug/add-and-commit@v9 with: - add: './README.md' - message: 'Update README.md with version ${{env.RELEASE_VERSION}}' + add: "./README.md" + message: "Update README.md with version ${{env.RELEASE_VERSION}}" + new_branch: ${{ steps.extract_branch.outputs.branch }} documentation: name: "Generate Documentation"