File tree Expand file tree Collapse file tree 1 file changed +3
-26
lines changed Expand file tree Collapse file tree 1 file changed +3
-26
lines changed Original file line number Diff line number Diff line change 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 }}"
You can’t perform that action at this time.
0 commit comments