Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 167f175

Browse files
dependabot[bot]sbouchetadietish
authored
build(deps): bump gradle/actions from 3.3.0 to 3.3.1 (#800)
* build(deps): bump gradle/actions from 3.3.0 to 3.3.1 Bumps [gradle/actions](https://github.com/gradle/actions) from 3.3.0 to 3.3.1. - [Release notes](https://github.com/gradle/actions/releases) - [Commits](gradle/actions@6cec5d4...750cdda) --- updated-dependencies: - dependency-name: gradle/actions dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * moved gradle validation action to gradle setup modified release process to add run number Signed-off-by: Stephane Bouchet <[email protected]> * fix publish to marketplace skip test Signed-off-by: Stephane Bouchet <[email protected]> * fix upload asset Signed-off-by: Stephane Bouchet <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Stephane Bouchet <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stephane Bouchet <[email protected]> Co-authored-by: Andre Dietisheim <[email protected]>
1 parent 397cb1b commit 167f175

File tree

4 files changed

+34
-20
lines changed

4 files changed

+34
-20
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ jobs:
6868
distribution: 'temurin'
6969
cache: 'gradle'
7070
- name: Setup Gradle
71-
uses: gradle/actions/setup-gradle@6cec5d49d4d6d4bb982fbed7047db31ea6d38f11 #v3.3.0
71+
uses: gradle/actions/setup-gradle@750cdda3edd6d51b7fdfc069d2e2818cf3c44f4c #v3.3.1
72+
with:
73+
add-job-summary: 'on-failure'
74+
add-job-summary-as-pr-comment: 'on-failure'
75+
validate-wrappers: true
7276
- uses: helm/kind-action@99576bfa6ddf9a8e612d83b513da5a75875caced #v1.9.0
7377
name: Start cluster
7478
with:

.github/workflows/integration_ui_tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ jobs:
1616
distribution: 'temurin'
1717
cache: 'gradle'
1818
- name: Setup Gradle
19-
uses: gradle/actions/setup-gradle@6cec5d49d4d6d4bb982fbed7047db31ea6d38f11 #v3.3.0
19+
uses: gradle/actions/setup-gradle@750cdda3edd6d51b7fdfc069d2e2818cf3c44f4c #v3.3.1
20+
with:
21+
add-job-summary: 'on-failure'
22+
add-job-summary-as-pr-comment: 'on-failure'
23+
validate-wrappers: true
2024
- uses: helm/kind-action@99576bfa6ddf9a8e612d83b513da5a75875caced #v1.9.0
2125
name: Start cluster
2226
with:

.github/workflows/nightly.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
steps:
1313
- name: Fetch Sources
1414
uses: actions/checkout@v4
15-
- name: validate Gradle Wrapper
16-
uses: gradle/actions/wrapper-validation@6cec5d49d4d6d4bb982fbed7047db31ea6d38f11 #v3.3.0
1715
- run: |
1816
git rev-parse HEAD >> lastCommit
1917
- name: Check New Changes
@@ -46,8 +44,11 @@ jobs:
4644

4745
# Setup Gradle
4846
- name: Setup Gradle
49-
uses: gradle/actions/setup-gradle@6cec5d49d4d6d4bb982fbed7047db31ea6d38f11 #v3.3.0
47+
uses: gradle/actions/setup-gradle@750cdda3edd6d51b7fdfc069d2e2818cf3c44f4c #v3.3.1
5048
with:
49+
add-job-summary: 'on-failure'
50+
add-job-summary-as-pr-comment: 'on-failure'
51+
validate-wrappers: true
5152
gradle-home-cache-cleanup: true
5253

5354
- name: Publish Plugin

.github/workflows/release.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Release Plugin
2+
run-name: Release ${{ inputs.release_version }}
23

34
#Only one job at a time
45
concurrency: release
@@ -14,12 +15,15 @@ on:
1415
- 'true'
1516
- 'false'
1617
default: 'false'
18+
release_version:
19+
description: 'Release version'
20+
required: true
21+
type: string
1722

1823
jobs:
1924
# Prepare and publish the plugin to JetBrains Marketplace repository
2025
release:
21-
if: ${{ inputs.publishToMarketPlace == 'true' }}
22-
name: Publish to Marketplace
26+
name: Publish new release
2327
runs-on: ubuntu-latest
2428
permissions:
2529
contents: write
@@ -29,10 +33,6 @@ jobs:
2933
- name: Fetch Sources
3034
uses: actions/checkout@v4
3135

32-
# Validate Wrapper before running build
33-
- name: validate Gradle Wrapper
34-
uses: gradle/actions/wrapper-validation@6cec5d49d4d6d4bb982fbed7047db31ea6d38f11 #v3.3.0
35-
3636
# Set up Java environment for the next steps
3737
- name: Setup Java
3838
uses: actions/setup-java@v4
@@ -42,21 +42,25 @@ jobs:
4242

4343
# Setup Gradle
4444
- name: Setup Gradle
45-
uses: gradle/actions/setup-gradle@6cec5d49d4d6d4bb982fbed7047db31ea6d38f11 #v3.3.0
45+
uses: gradle/actions/setup-gradle@750cdda3edd6d51b7fdfc069d2e2818cf3c44f4c #v3.3.1
4646
with:
47+
add-job-summary: 'on-failure'
48+
add-job-summary-as-pr-comment: 'on-failure'
49+
validate-wrappers: true
4750
gradle-home-cache-cleanup: true
4851

4952
- name: Set Release Version
5053
shell: bash
5154
run: |
5255
CURRENT_VERSION=$(grep "projectVersion=" gradle.properties | cut -d'=' -f2)
53-
NEW_VERSION=${CURRENT_VERSION%-SNAPSHOT}
56+
NEW_VERSION=${{ inputs.release_version }}.${{ github.run_number }}
5457
awk -v current="$CURRENT_VERSION" -v new="$NEW_VERSION" 'BEGIN {FS=OFS="="} $1 == "projectVersion" { $2 = new }1' gradle.properties > tmpfile && mv tmpfile gradle.properties
5558
echo "Release version: $NEW_VERSION"
5659
echo "PLUGIN_VERSION=${NEW_VERSION}" >> $GITHUB_ENV
5760
5861
# Publish the plugin to JetBrains Marketplace
5962
- name: Publish Plugin to JetBrains Marketplace
63+
if: ${{ inputs.publishToMarketPlace == 'true' }}
6064
env:
6165
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}
6266
run: |
@@ -72,10 +76,10 @@ jobs:
7276
if git diff --quiet; then
7377
echo "No changes to commit."
7478
else
75-
git commit -sam "chore(skip-release): set version to $PLUGIN_VERSION"
79+
git commit -sam "chore(skip-release): set version to ${{ inputs.release_version }}"
7680
fi
77-
git tag $PLUGIN_VERSION
78-
git push origin $PLUGIN_VERSION
81+
git tag ${{ inputs.release_version }}
82+
git push origin ${{ inputs.release_version }}
7983
8084
# Set next SNAPSHOT version
8185
- name: Increment Plugin Version
@@ -100,22 +104,23 @@ jobs:
100104
id: changelog
101105
with:
102106
token: ${{ secrets.GITHUB_TOKEN }}
103-
current-tag: ${{env.PLUGIN_VERSION}}
107+
current-tag: ${{ inputs.release_version }}
104108
types-mapping: 'feat:Features,fix:Bug Fixes,docs:Documentation,refactor:Refactoring,build:Builds,chore:Other'
105109

106110
# Create a new Github release
107111
- name: Create Github Release
108112
env:
109113
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
110114
run: |
111-
gh release create ${PLUGIN_VERSION} \
112-
--title "${PLUGIN_VERSION}" \
115+
gh release create ${{ inputs.release_version }} \
116+
--title "${{ inputs.release_version }}" \
113117
--notes "$(cat << 'EOM'
114118
${{ steps.changelog.outputs.changelog }}
115119
EOM
116120
)"
117121
118122
- name: Upload Release Asset
123+
if: ${{ inputs.publishToMarketPlace == 'true' }}
119124
env:
120125
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121-
run: gh release upload ${PLUGIN_VERSION} ./build/distributions/*
126+
run: gh release upload ${{ inputs.release_version }} ./build/distributions/*

0 commit comments

Comments
 (0)