Skip to content

Commit

Permalink
Merge pull request #43731 from NipunaMadhushan/update-fbp-pr-check
Browse files Browse the repository at this point in the history
Update fbp pr check
  • Loading branch information
rdulmina authored Jan 7, 2025
2 parents 53f6d83 + fcf92fd commit 04164e6
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/daily_build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Ballerina daily build

on:
workflow_dispatch:
schedule:
- cron: '30 18 * * *' # 00:00 in LK time (GMT+5:30)
- cron: '30 6 * * *' # 12:00 in LK time (GMT+5:30)
Expand Down
35 changes: 33 additions & 2 deletions .github/workflows/pull_request_full_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,42 @@ jobs:
wget https://raw.githubusercontent.com/ballerina-platform/ballerina-release/master/dependabot/resources/extensions.json
wget https://raw.githubusercontent.com/ballerina-platform/ballerina-distribution/2201.0.x/gradle.properties
# - name: Clone Modules
# run: |
# for module_name in $(jq -r '.standard_library| .[] | select(.level==${{ matrix.level }}) | .name' extensions.json); \
# do git clone https://github.com/ballerina-platform/${module_name}.git; \
# done
- name: Clone Modules
run: |
for module_name in $(jq -r '.standard_library| .[] | select(.level==${{ matrix.level }}) | .name' extensions.json); \
do git clone https://github.com/ballerina-platform/${module_name}.git; \
for module_name in $(jq -r '.standard_library| .[] | select(.level==${{ matrix.level }}) | .name' extensions.json); do
echo "Cloning module: ${module_name}"
repo_url=https://github.com/ballerina-platform/${module_name}.git
branch=metrics-logs
if git ls-remote --heads "$repo_url" "$branch" | grep -q "$branch"; then
echo "Branch '$branch' found."
git clone -b "$branch" --single-branch "$repo_url"
else
echo "Branch '$branch' not found. Cloning default branch '$default_branch' instead."
git clone $repo_url
fi
done
shell: bash

- name: Update Lang Version in Module
run: |
for module_name in $(jq -r '.standard_library| .[] | select(.level==${{ matrix.level }}) | .name' extensions.json); do \
perl -pi -e "s/^\s*ballerinaLangVersion=.*/ballerinaLangVersion=${{ needs.build-lang.outputs.lang_version }}/" ${module_name}/gradle.properties; \
done
- name: Update Observe Module Version
run: |
OBSERVE_VERSION=1.4.0-20241220-100300-6b4cf7a
OBSERVE_INTERNAL_VERSION=1.4.0-20250103-120100-3c54658
for module_name in $(jq -r '.standard_library| .[] | select(.level==${{ matrix.level }}) | .name' extensions.json); do \
perl -pi -e "s/^\s*observeVersion=.*/observeVersion=${OBSERVE_VERSION}/" ${module_name}/gradle.properties && \
perl -pi -e "s/^\s*observeInternalVersion=.*/observeInternalVersion=${OBSERVE_INTERNAL_VERSION}/" ${module_name}/gradle.properties; \
done
- name: Build Module
run: |
for module_name in $(jq -r '.standard_library| .[] | select(.level==${{ matrix.level }}) | .name' extensions.json); do \
Expand Down Expand Up @@ -142,6 +166,13 @@ jobs:
run: |
perl -pi -e "s/^\s*ballerinaLangVersion=.*/ballerinaLangVersion=${{ needs.build-lang.outputs.lang_version }}/" gradle.properties
- name: Update Observe Module Version
run: |
OBSERVE_VERSION=1.4.0-20241220-100300-6b4cf7a
OBSERVE_INTERNAL_VERSION=1.4.0-20250103-120100-3c54658
perl -pi -e "s/^\s*observeVersion=.*/observeVersion=${OBSERVE_VERSION}/" gradle.properties
perl -pi -e "s/^\s*observeInternalVersion=.*/observeInternalVersion=${OBSERVE_INTERNAL_VERSION}/" gradle.properties
- name: Build Module
run: ./gradlew clean build --stacktrace --scan --console=plain --no-daemon --continue -x :project-api-tests:test
env:
Expand Down

0 comments on commit 04164e6

Please sign in to comment.