From 63781bb4b95b804317722530c028f0891095d098 Mon Sep 17 00:00:00 2001 From: Kazik Pogoda Date: Thu, 29 Aug 2024 21:30:44 +0200 Subject: [PATCH] github action build_release another attempt to fix release process with README.md update (#16) --- .github/workflows/build-release.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index b9875ec..91510ee 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -49,15 +49,18 @@ jobs: exit 1 fi echo "::set-output name=branch::$BRANCH" + echo Branch: $BRANCH + echo "BRANCH=$BRANCH" >> $GITHUB_ENV - name: Checkout branch HEAD - run: git checkout ${{ steps.find-branch.outputs.branch }} + run: git checkout ${BRANCH} - name: Update README run: sed -i 's/com\.xemantic\.kotlin:xemantic-kotlin-swing-dsl-\(core\|test\):[0-9]\+\(\.[0-9]\+\)*\>/com.xemantic.kotlin:xemantic-kotlin-swing-dsl-\1:${VERSION}/g' README.md - - name: Commit README - uses: stefanzweifel/git-auto-commit-action@v5 + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 with: - commit_message: README.md version updated to ${VERSION} - file_pattern: 'README.md' + token: ${{ secrets.WORKFLOW_SECRET }} + commit-message: README.md gradle dependencies update to ${VERSION} + title: PR Action - README.md gradle dependencies update to ${VERSION}