Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/renovate-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ extra-substituters = https://crossplane.cachix.org
extra-trusted-public-keys = crossplane.cachix.org-1:NJluVUN9TX0rY/zAxHYaT19Y5ik4ELH4uFuxje+62d4=
EOF

echo "Nix $(nix --version) installed successfully"
# Renovate installs its own Nix when it updates flake.lock. It goes earlier on
# PATH than ours and ignores the config above, so all nix commands we run (e.g.
# postUpgradeTasks) will go through this launcher, which pins both the binary
# and the config it reads.
cat > /usr/local/bin/crossplane-nix << 'EOF'
#!/bin/bash
exec env NIX_CONF_DIR=/etc/nix /usr/bin/nix "$@"
EOF
chmod +x /usr/local/bin/crossplane-nix

echo "Nix $(crossplane-nix --version) installed successfully"

renovate
6 changes: 3 additions & 3 deletions .github/renovate-nix.json5
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
],
postUpgradeTasks: {
commands: [
'nix run .#tidy',
'nix run .#generate',
'crossplane-nix run .#tidy',
'crossplane-nix run .#generate',
],
fileFilters: [
'**/*',
Expand All @@ -77,7 +77,7 @@
],
postUpgradeTasks: {
commands: [
'nix run .#lint',
'crossplane-nix run .#lint',
],
fileFilters: [
'**/*',
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
# Use GitHub API to create commits
RENOVATE_PLATFORM_COMMIT: "true"
LOG_LEVEL: ${{ github.event.inputs.logLevel || env.LOG_LEVEL }}
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^nix .+", "^earthly .+"]'
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^crossplane-nix .+", "^earthly .+"]'
with:
configurationFile: .github/renovate.json5
token: '${{ steps.get-github-app-token.outputs.token }}'
Expand Down
Loading