Skip to content

Commit

Permalink
move quarkus-update script to renovate config repo
Browse files Browse the repository at this point in the history
  • Loading branch information
hwirnsberger committed Jun 21, 2024
1 parent 34abd62 commit 4ab39d0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ jobs:
renovate-version: main-8b03812
token: ${{ secrets.RENOVATE_TOKEN }}
configurationFile: renovate-config.js
docker-volumes: |
/home/runner/work/renovate/renovate/quarkus-update:/github-action/quarkus-update
env:
LOG_LEVEL: debug
16 changes: 16 additions & 0 deletions quarkus-update
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

branchName=$1
oldVersion=$2
newVersion=$3
newMajorMinor=$4
$platform=$5
$sourceRepoOrg=$6
$sourceRepoName=$7

echo $

if [ "$branchName" = "renovate/quarkus.platform.version" ]; then
echo "Branch: $branchName; Old version: $oldVersion; New MajorMinorVersion: $newMajorMinor"
/tmp/renovate/repos/$platform/$sourceRepoOrg/$sourceRepoName/mvnw -f /tmp/renovate/repos/$platform/$sourceRepoOrg/$sourceRepoName/pom.xml quarkus:update -Dquarkus.platform.version=$oldVersion -Dstream=$newMajorMinor
fi
4 changes: 2 additions & 2 deletions renovate-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ module.exports = {
],
prHourlyLimit: 0,
postUpgradeTasks: {
commands: ["./quarkus-update {{branchName}} {{currentVersion}} {{newVersion}} {{newMajor}}.{{newMinor}}"],
commands: ["/github-action/quarkus-update {{branchName}} {{currentVersion}} {{newVersion}} {{newMajor}}.{{newMinor}} {{platform}} {{sourceRepoOrg}} {{sourceRepoName}}"],
fileFilters: ["**/*", "**/.*"]
},
allowedPostUpgradeCommands: [
"^./quarkus-update {{branchName}} {{currentVersion}} {{newVersion}} {{newMajor}}.{{newMinor}}$"
"^/github-action/quarkus-update {{branchName}} {{currentVersion}} {{newVersion}} {{newMajor}}.{{newMinor}} {{platform}} {{sourceRepoOrg}} {{sourceRepoName}}$"
]
}

0 comments on commit 4ab39d0

Please sign in to comment.