Skip to content

Commit 47cdf1a

Browse files
committed
Tweaking nightly build script
1 parent 3ac5c70 commit 47cdf1a

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed

.github/workflows/daily-branch-verification.yml

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
# List all branches except HEAD and remove origin/ prefix
2424
git fetch --all
2525
branches=$(git branch -r | grep -v '\->' | grep -v HEAD | grep 'origin/sample-code' | sed 's/origin\///')
26-
echo "branches=$branches" >> $GITHUB_ENV
27-
echo "::set-output name=branches::$(echo $branches | tr '\n' ',')"
26+
formatted_branches=$(echo $branches | tr '\n' ',' | sed 's/,$//')
27+
echo "formatted_branches=$formatted_branches" >> $GITHUB_ENV
2828
2929
# Run Maven verify on each branch in parallel
3030
verify-branches:
@@ -38,34 +38,11 @@ jobs:
3838
uses: actions/checkout@v3
3939
with:
4040
ref: ${{ matrix.branch }}
41-
fetch-depth: 0 # Fetch the branch
42-
43-
- name: Set up JDK 17
44-
uses: actions/setup-java@v3
45-
with:
46-
java-version: '17'
47-
distribution: 'adopt'
48-
49-
- name: Set up Node.js
50-
uses: actions/setup-node@v3
51-
with:
52-
node-version: '20'
53-
54-
- name: Setup Maven Action
55-
56-
with:
57-
checkout-fetch-depth: 0
58-
java-version: 17
59-
java-distribution: temurin
60-
maven-version: 3.9.9
61-
62-
- name: Install Playwright dependencies
63-
run: npx playwright install-deps
41+
fetch-depth: 0
6442

6543
- name: Run Maven Verify
6644
run: |
6745
echo "Processing branch: ${{ matrix.branch }}"
68-
git checkout ${{ matrix.branch }}
6946
mvn clean verify
7047
if [ $? -ne 0 ]; then
7148
echo "Maven verify failed on branch: ${{ matrix.branch }}"

0 commit comments

Comments
 (0)