Skip to content

Commit

Permalink
chore: Set missing +x for release script (#5416)
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Al-Istannen authored Aug 30, 2023
1 parent fd2c6ab commit 21f8b6b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions chore/release-beta.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CURRENT_VERSION="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//')"
CURRENT_VERSION_WITH_SNAPSHOT="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"

if [[ ! $CURRENT_VERSION_WITH_SNAPSHOT =~ .*-SNAPSHOT ]]; then
Expand All @@ -7,12 +8,12 @@ fi

# Compute next beta number
echo "::group::Computing next beta number"
LAST_BETA_NUMBER="$(curl -L "http://search.maven.org/solrsearch/select?q=a:spoon-core+g:fr.inria.gforge.spoon&rows=40&wt=json&core=gav" | jq -r ".response.docs | map(.v) | map((match(\"$CURRENT_VERSION_NO_SNAPSHOT-beta-(.*)\") | .captures[0].string) // \"0\") | .[0]")"
LAST_BETA_NUMBER="$(curl -L "http://search.maven.org/solrsearch/select?q=a:spoon-core+g:fr.inria.gforge.spoon&rows=40&wt=json&core=gav" | jq -r ".response.docs | map(.v) | map((match(\"$CURRENT_VERSION-beta-(.*)\") | .captures[0].string) // \"0\") | .[0]")"
echo "LAST_BETA_NUMBER $LAST_BETA_NUMBER"

NEW_BETA_NUMBER=$((LAST_BETA_NUMBER + 1))
echo "NEW_BETA_NUMBER $NEW_BETA_NUMBER"
NEXT_VERSION="$CURRENT_VERSION_NO_SNAPSHOT-beta-$NEW_BETA_NUMBER"
NEXT_VERSION="$CURRENT_VERSION-beta-$NEW_BETA_NUMBER"
echo "::endgroup::"

echo "::group::Setting release version"
Expand Down
2 changes: 1 addition & 1 deletion chore/release-nightly.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ mvn --no-transfer-progress --batch-mode -Pjreleaser deploy:deploy-file -Dfile=".
echo "::endgroup::"

echo "::group::Running jreleaser"
JRELEASER_PROJECT_VERSION="$NEXT_VERSION" jreleaser-cli deploy
JRELEASER_PROJECT_VERSION="$CURRENT_VERSION_WITH_SNAPSHOT" jreleaser-cli deploy
echo "::endgroup::"
Empty file modified chore/release.sh
100644 → 100755
Empty file.

0 comments on commit 21f8b6b

Please sign in to comment.