remove python action update script

This commit is contained in:
Thephaseless 2024-11-30 12:59:00 +00:00
parent 89087f8b5e
commit 1a8f7e2631
2 changed files with 1 additions and 29 deletions

View File

@ -1,6 +1,5 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"allowedPostUpgradeCommands": ["^./scripts/post-upgrade.sh"],
"extends": ["config:recommended"], "extends": ["config:recommended"],
"packageRules": [ "packageRules": [
{ {
@ -8,12 +7,5 @@
"matchPackageNames": ["^(?!.*\bpython\b).*"], "matchPackageNames": ["^(?!.*\bpython\b).*"],
"matchUpdateTypes": ["minor", "patch"] "matchUpdateTypes": ["minor", "patch"]
} }
], ]
"postUpgradeTasks": {
"commands": [
"./scripts/post-upgrade.sh {{{depName}}} {{{currentVersion}}} {{{newVersion}}}"
],
"executionMode": "update",
"fileFilters": []
}
} }

View File

@ -1,20 +0,0 @@
#!/bin/sh
action_path=.github/workflows/docker-publish.yml
# Example usage:
# ./update_python_action.sh python 3.12 3.13
dependency_name=$1
current_version=$2
new_version=$3
# If package is not python, skip
if [ "$dependency_name" != "python" ]; then
exit 0
fi
# Find and replace python version
# with:
# python-version: "3.13"
sed -i "s/python-version: \"$current_version\"/python-version: \"$new_version\"/g" $action_path