Skip to content

Commit

Permalink
Merge pull request #5868 from NipunaMadhushan/update-custum-jre
Browse files Browse the repository at this point in the history
Update kola release workflow
  • Loading branch information
NipunaMadhushan authored Dec 4, 2024
2 parents 07db3ea + 59e96f1 commit d7f8c56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/publish_release_bi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,9 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: '10.22.1'
- name: Clone ballerina-dev-tools
run: git clone https://github.com/ballerina-platform/ballerina-dev-tools.git
- name: Build ballerina-dev-tools
id: build-dev-tools
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
devCentralToken: ${{ secrets.BALLERINA_CENTRAL_DEV_ACCESS_TOKEN }}
githubAccessToken: ${{ secrets.GITHUB_TOKEN }}
ballerinaBotWorkflow: $ {{ secrets.BALLERINA_BOT_WORKFLOW }}
TEST_MODE_ACTIVE: true
run: |
cd ballerina-dev-tools
VERSION=$((grep -w 'version' | cut -d= -f2 | cut -d- -f1) < gradle.properties)
sed -i "s/^version=.*/version=$VERSION/" gradle.properties
echo "::set-output name=version::$(grep "^version=" gradle.properties | cut -d'=' -f2)"
echo "::set-output name=langVersion::$(grep "^ballerinaLangVersion=" gradle.properties | cut -d'=' -f2)"
./gradlew clean build --stacktrace --scan -x test --console=plain --no-daemon --continue publishToMavenLocal
cd ..
rm -rf ballerina-dev-tools
- name: Set version env variable
id: version-set
run: |
sed -i "s/^devToolsVersion=.*/devToolsVersion=${{ steps.build-dev-tools.outputs.version }}/" gradle.properties
sed -i "s/^ballerinaLangVersion=.*/ballerinaLangVersion=${{ steps.build-dev-tools.outputs.langVersion }}/" gradle.properties
SHORT_VERSION=$((grep -w 'version' | cut -d= -f2 | cut -d- -f1) < gradle.properties)
DIST_VERSION=$((grep -w 'version' | cut -d= -f2) < gradle.properties | rev | cut --complement -d- -f1 | rev)
LANG_VERSION=$((grep -w "ballerinaLangVersion" | cut -d= -f2 | cut -d- -f1 | xargs) < gradle.properties)
Expand All @@ -64,7 +42,7 @@ jobs:
echo "::set-output name=taggedVersion::$TAGGED_VERSION"
echo "::set-output name=longVersion::$LONG_VERSION"
echo "::set-output name=langVersion::$LANG_VERSION"
- name: Pre release depenency version update
- name: Pre release dependency version update
env:
GITHUB_TOKEN: ${{ secrets.BALLERINA_BOT_TOKEN }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ group=org.ballerinalang
version=2201.11.0-SNAPSHOT
codeName=swan-lake

ballerinaLangVersion=2201.11.0-20241121-075100-c4c87cbc
ballerinaLangVersion=2201.11.0-20241204-102100-fc33b755
ballerinaJreVersion=3.0.0
dependencyJREVersion=jdk-21.0.5+11-jre
specVersion=2024R1
Expand Down

0 comments on commit d7f8c56

Please sign in to comment.