Skip to content

Commit

Permalink
Merge pull request #5880 from NipunaMadhushan/update-custum-jre
Browse files Browse the repository at this point in the history
Update kola release workflow
  • Loading branch information
nipunayf authored Dec 10, 2024
2 parents 20db9c5 + c95fe0d commit 2874594
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish_release_bi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,31 @@ 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 Down

0 comments on commit 2874594

Please sign in to comment.