File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 with :
2525 distribution : ' temurin'
2626 java-version : ${{ matrix.java }}
27- - uses : actions/cache@v5
28- with :
29- path : ~/.m2/repository
30- key : ${{ runner.os }}-jdk-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
31- restore-keys : |
32- ${{ runner.os }}-jdk-${{ matrix.java }}-maven-
3327 - run : java -version
3428 - run : mvn -version
35- - name : Run Maven
36- shell : bash
37- id : run_maven
38- run : |
39- set +e
40- mvn --errors --batch-mode clean install -Pqulice -Dhone.skip=true 2>&1 | tail -120 | tee mvn-tail.log
41- EXIT_CODE=${PIPESTATUS[0]}
42- exit $EXIT_CODE
43- - name : Comment with failure log
44- if : failure()
45- uses : actions/github-script@v7
46- with :
47- script : |
48- const fs = require('fs');
49- let body = '';
50- try { body = fs.readFileSync('mvn-tail.log', 'utf8'); } catch (e) { body = 'no log'; }
51- const truncated = body.length > 60000 ? body.slice(-60000) : body;
52- const issueNum = context.payload.pull_request ? context.payload.pull_request.number : null;
53- if (issueNum) {
54- await github.rest.issues.createComment({
55- owner: context.repo.owner,
56- repo: context.repo.repo,
57- issue_number: issueNum,
58- body: '<details><summary>Maven failure log (' + context.job + ')</summary>\n\n```\n' + truncated + '\n```\n</details>'
59- });
60- }
29+ - run : mvn --errors --batch-mode clean install -Pqulice -Dhone.skip=true
You can’t perform that action at this time.
0 commit comments