Skip to content

Commit

Permalink
chore: make renovatebot also update .in files; add post-update script…
Browse files Browse the repository at this point in the history
… to put back the missing querystring values that cachito needs (#928)

Signed-off-by: rhdh-bot service account <rhdh-bot@redhat.com>
Co-authored-by: rhdh-bot service account <rhdh-bot@redhat.com>
  • Loading branch information
nickboldt and rhdh-bot committed Jan 26, 2024
1 parent 1ce40dd commit ae98b5b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
"npm": {
"minimumReleaseAge": "1 day"
},
"pip_requirements": {
"fileMatch": ["**/requirements-*.in","**/requirements-*.txt"],
"postUpgradeTasks": {
"commands": ["./.rhdh/docker/cachito_hash.sh"],
"fileFilters": ["**/requirements-*.in","**/requirements-*.txt"],
"executionMode": "update"
}

},
"packageRules": [
{
"matchPackagePatterns": [
Expand Down
12 changes: 9 additions & 3 deletions .rhdh/docker/cachito_hash.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/bin/bash

#
# Copyright (c) 2023 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# see README.requirements.md -- this is used to regenerate the sha256 sums in the .in and .txt files

SCRIPT_DIR=$(cd "$(dirname "$0")" || exit; pwd)
pushd "$SCRIPT_DIR" >/dev/null || exit
# update the sha256: values in requirements.in and requirements-build.in files
for file in requirements.in requirements-build.in; do
echo "Update $file ..."
Expand All @@ -25,5 +32,4 @@ for file in requirements.in requirements-build.in; do
done
done
done


popd >/dev/null || exit

0 comments on commit ae98b5b

Please sign in to comment.