Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@ jobs:
-DnewVersion="${{ steps.version.outputs.version }}" \
-DgenerateBackupPoms=false

- name: Sync skill bundle version pin to the release version
# The skill launcher reads SONAR_BUNDLE_VERSION from config.env to
# decide which sonar-predictor-dist-<version>.zip to fetch from
# Maven Central on first invocation. If config.env is stale, an
# installed plugin downloads the wrong bundle. Forcing the pin to
# match the tag here removes that trap from every future release.
run: |
set -euo pipefail
CONFIG=plugin/skills/sonar-predictor/config.env
sed -i "s|^SONAR_BUNDLE_VERSION=.*|SONAR_BUNDLE_VERSION=${{ steps.version.outputs.version }}|" "${CONFIG}"
grep '^SONAR_BUNDLE_VERSION' "${CONFIG}"

- name: Build the source bundle (whole-repo git archive of HEAD)
# Built BEFORE the deploy: the release profile's build-helper plugin
# attaches this zip (from the repo root) to the Maven Central upload,
Expand Down
2 changes: 1 addition & 1 deletion plugin/skills/sonar-predictor/config.env
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ SONAR_MAVEN_REPO_URL=https://repo1.maven.org/maven2

# Bundle version. Bumped in lockstep with each plugin release. A fork can pin
# to a vendored / mirrored version without touching the launcher.
SONAR_BUNDLE_VERSION=0.1.1
SONAR_BUNDLE_VERSION=0.1.3

# --- Java runtime --------------------------------------------------------------

Expand Down
Loading