Skip to content

Commit

Permalink
Group dependabot updates for GitHub Actions
Browse files Browse the repository at this point in the history
Group patch and minor updates, as well as any release for the
upload/download artifact actions, that need to be upgraded always
together.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
  • Loading branch information
llucax committed Jul 24, 2024
1 parent 02b4c0f commit 6a8457f
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ updates:
labels:
- "part:tooling"
- "type:tech-debt"
groups:
compatible:
update-types:
- "minor"
- "patch"
artifacts:
patterns:
- "actions/*-artifact"
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

### Cookiecutter template

<!-- Here new features for cookiecutter specifically -->
* Group GitHub Actions dependabot updates.

## Bug Fixes

Expand Down
22 changes: 20 additions & 2 deletions cookiecutter/migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,27 @@ manual_step() {
echo "\033[0;33m>>> $@\033[0m"
}

echo "TODO: Describe your migration step here."
#echo "TODO: Describe your migration step here."
# Add your migration steps here.
manual_step "Add any manual instructions for this step here."
#manual_step "Add any manual instructions for this step here."

echo "dependabot: Group GitHub Actions updates."
cat <<'EOT' | patch -p1
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -39,3 +39,11 @@ updates:
labels:
- "part:tooling"
- "type:tech-debt"
+ groups:
+ compatible:
+ update-types:
+ - "minor"
+ - "patch"
+ artifacts:
+ patterns:
+ - "actions/*-artifact"
EOT

# Add a separation line like this one after each migration step.
echo "========================================================================"
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ updates:
labels:
- "part:tooling"
- "type:tech-debt"
groups:
compatible:
update-types:
- "minor"
- "patch"
artifacts:
patterns:
- "actions/*-artifact"
{%- if cookiecutter.type == "api" %}

- package-ecosystem: "gitsubmodule"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ updates:
labels:
- "part:tooling"
- "type:tech-debt"
groups:
compatible:
update-types:
- "minor"
- "patch"
artifacts:
patterns:
- "actions/*-artifact"
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ updates:
labels:
- "part:tooling"
- "type:tech-debt"
groups:
compatible:
update-types:
- "minor"
- "patch"
artifacts:
patterns:
- "actions/*-artifact"

- package-ecosystem: "gitsubmodule"
directory: "/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ updates:
labels:
- "part:tooling"
- "type:tech-debt"
groups:
compatible:
update-types:
- "minor"
- "patch"
artifacts:
patterns:
- "actions/*-artifact"
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ updates:
labels:
- "part:tooling"
- "type:tech-debt"
groups:
compatible:
update-types:
- "minor"
- "patch"
artifacts:
patterns:
- "actions/*-artifact"
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ updates:
labels:
- "part:tooling"
- "type:tech-debt"
groups:
compatible:
update-types:
- "minor"
- "patch"
artifacts:
patterns:
- "actions/*-artifact"

0 comments on commit 6a8457f

Please sign in to comment.