File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 description : ' Next SNAPSHOT version (such as 2.4-SNAPSHOT)'
2222 required : true
2323 type : string
24+ secrets :
25+ QUDTLIB_BOT_GITHUB_TOKEN :
26+ required : true
27+ MAVEN_USERNAME :
28+ required : true
29+ MAVEN_CENTRAL_TOKEN :
30+ required : true
31+ MAVEN_GPG_PASSPHRASE :
32+ required : true
2433
2534jobs :
2635 build :
2736 runs-on : ubuntu-latest
28- permissions :
29- contents : write
30- pull-requests : write
3137
3238 steps :
33- - name : Checkout
34- uses : actions/checkout@v6
35- with :
36- token : ${{ secrets.QUDTLIB_BOT_GITHUB_TOKEN }}
37- fetch-depth : 0
38- persist-credentials : true
39-
40- # Critical fix for "could not read Username" and duplicate header issues
41- - name : Configure Git credentials (insteadOf)
42- run : |
43- git config --global url."https://${{ secrets.QUDTLIB_BOT_GITHUB_TOKEN }}@github.com/".insteadOf "https://github.com/"
44-
45- # Extra safety - remove any conflicting extraheader
46- - name : Fix git authentication headers
47- run : |
48- git config --global --unset http.https://github.com/.extraheader || true
49- git config --local --unset http.https://github.com/.extraheader || true
50-
51- # Check write access to repo
5239 - name : Check write access to repo
5340 run : |
5441 token_login=$(curl -H "Authorization: Bearer ${token}" https://api.github.com/user | jq -r '.login')
8673
8774 # import the secret key
8875 - name : Set up Apache Maven Central
89- uses : actions/setup-java@v5
76+ uses : actions/setup-java@v3
9077 with : # running setup-java again overwrites the settings.xml
9178 distribution : ' temurin'
9279 java-version : ' 21'
You can’t perform that action at this time.
0 commit comments