From de2b64bae8e9ce349296adc8e8e8bf353bc890e0 Mon Sep 17 00:00:00 2001 From: Kazik Pogoda Date: Sat, 11 Jan 2025 18:43:42 +0100 Subject: [PATCH] release action update --- .github/workflows/build-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 7af5a4e..d1bddea 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -43,12 +43,14 @@ jobs: run: ./gradlew -Pversion=$VERSION build sourcesJar dokkaGeneratePublicationHtml publish jreleaserDeploy - name: Checkout main branch + if: github.ref == 'refs/heads/main' uses: actions/checkout@v4.2.2 with: ref: main fetch-depth: 0 - name: Update README + if: github.ref == 'refs/heads/main' run: sh .github/scripts/update-readme-version.sh - name: Create Pull Request