File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1313 pull-requests : write
1414 steps :
1515 - run : sudo apt install -y jq
16-
16+ - run : sudo snap install yq
1717 - uses : actions/checkout@v4
1818 with :
1919 ref : master
3131 run : |
3232 ./scripts/fetch_latest_version.sh > sonar-scanner-version
3333 cat sonar-scanner-version >> $GITHUB_OUTPUT
34-
34+ - name : " Update default version"
35+ if : steps.tagged-version.outputs.sonar-scanner-version != steps.latest-version.outputs.sonar-scanner-version
36+ shell : bash
37+ env :
38+ NEW_VERSION : ${{ steps.latest-version.outputs.sonar-scanner-version }}
39+ run : |
40+ yq -i '.inputs.scannerVersion.default = "${NEW_VERSION}"' action.yml
3541 - name : " Create Pull Request for version update"
3642 if : steps.tagged-version.outputs.sonar-scanner-version != steps.latest-version.outputs.sonar-scanner-version
3743 shell : bash
4450 git config --global user.email "sonartech@sonarsource.com"
4551 git checkout -b ${UPDATE_BRANCH}
4652 git add sonar-scanner-version
53+ git add action.yml
4754 git commit -m "${TITLE}"
4855 git push --force-with-lease origin ${UPDATE_BRANCH}
4956 gh pr list
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ inputs:
1616 scannerVersion :
1717 description : Version of the Sonar Scanner CLI to use
1818 required : false
19- default : 6.2.1.4610 # to be kept in sync with sonar-scanner-version
19+ # to be kept in sync with sonar-scanner-version
20+ default : 6.2.1.4610
2021 scannerBinariesUrl :
2122 description : URL to download the Sonar Scanner CLI binaries from
2223 required : false
You can’t perform that action at this time.
0 commit comments