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: 12 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"regexManagers": [
{
"fileMatch": ["\\.nix$"],
"matchStrings": [
"\"(?<depName>[\\w-]+/[\\w-]+)@(?<currentValue>[\\w.]+)\""
],
"datasourceTemplate": "github-runners"
}
]
}
1 change: 1 addition & 0 deletions module/interface.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ in
type = types.str;
default = "actions/checkout@v6";
description = "The default checkout action to use for jobs";
# renovate:ignore
example = "actions/checkout@v5";
};

Expand Down
5 changes: 5 additions & 0 deletions module/tests/github-actions/job.nix
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
test-github-actions-job-custom-checkout-action = {
expr = test-lib.eval-github-actions {
pipeline.github-actions.defaultRunsOn = "ubuntu-latest";
# renovate:ignore
pipeline.github-actions.checkoutAction = "actions/checkout@v5";
jobs.job1 = {
checkout = true;
Expand All @@ -184,6 +185,7 @@
jobs.job1 = {
runs-on = "ubuntu-latest";
steps = [
# renovate:ignore
{ uses = "actions/checkout@v5"; }
{ run = "echo hello"; }
];
Expand All @@ -194,6 +196,7 @@
test-github-actions-changes-job-uses-custom-checkout-action = {
expr = test-lib.eval-github-actions {
pipeline.github-actions.defaultRunsOn = "ubuntu-latest";
# renovate:ignore
pipeline.github-actions.checkoutAction = "actions/checkout@v5";
jobs = {
job-a = {
Expand All @@ -210,6 +213,7 @@
outputs.changes = "\${{ steps.diff.outputs.changes }}";
runs-on = "ubuntu-latest";
steps = [
# renovate:ignore
{ uses = "actions/checkout@v5"; }
{
id = "diff";
Expand All @@ -224,6 +228,7 @@
"if" = ''''${{ fromJSON(needs.changes.outputs.changes)['job-a'] == true }}'';
runs-on = "ubuntu-latest";
steps = [
# renovate:ignore
{ uses = "actions/checkout@v5"; }
];
};
Expand Down
Loading