From 2299cc8bd7b5ce7090871da11c52cf3b932b2433 Mon Sep 17 00:00:00 2001 From: Stephane Bouchet Date: Tue, 16 Jul 2024 18:18:58 +0200 Subject: [PATCH] chore(skip-release): Update release.yml Signed-off-by: Stephane Bouchet --- .github/workflows/release.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a4269d670..dbef8507f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,6 +49,20 @@ jobs: validate-wrappers: true gradle-home-cache-cleanup: true + - name: Tag Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git config user.email "action@github.com" + git config user.name "GitHub Action" + if git diff --quiet; then + echo "No changes to commit." + else + git commit -sam "chore(skip-release): set version to ${{ inputs.release_version }}" + fi + git tag ${{ inputs.release_version }} + git push origin ${{ inputs.release_version }} + - name: Set Release Version shell: bash run: | @@ -67,20 +81,6 @@ jobs: ./gradlew publishPlugin -PjetBrainsToken=$PUBLISH_TOKEN -PprojectVersion=$PLUGIN_VERSION -PjetBrainsChannel=stable echo "Published $PLUGIN_VERSION to the Jetbrains Marketplace" - - name: Tag Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - git config user.email "action@github.com" - git config user.name "GitHub Action" - if git diff --quiet; then - echo "No changes to commit." - else - git commit -sam "chore(skip-release): set version to ${{ inputs.release_version }}" - fi - git tag ${{ inputs.release_version }} - git push origin ${{ inputs.release_version }} - # Set next SNAPSHOT version - name: Increment Plugin Version shell: bash