Skip to content

Commit 8eeecb3

Browse files
committed
Apply migration from 0.16.0 to 0.17.0
For some reason the dependabot PR updated the dependency to v0.17.0 but the PR and commit description said it was updated to v0.16.0, so the migration script ran for v0.15.0 and v0.16.0 but not v0.17.0. We now run the missing migration. Output: ``` Migrating workflows to use ubuntu-slim runner for lightweight jobs... Skipped .github/workflows/ci.yaml: already uses ubuntu-slim for job nox-all Skipped .github/workflows/ci.yaml: already uses ubuntu-slim for job test-installation-all Skipped .github/workflows/ci.yaml: already uses ubuntu-slim for job create-github-release Updated .github/workflows/ci.yaml: migrated job publish-to-pypi to ubuntu-slim Skipped .github/workflows/release-notes-check.yml: already uses ubuntu-slim for job check-release-notes Skipped .github/workflows/dco-merge-queue.yml: already uses ubuntu-slim for job DCO Skipped .github/workflows/labeler.yml: already uses ubuntu-slim for job Label ======================================================================== Migrating pyproject license metadata to SPDX format... Skipped pyproject.toml (already up to date) ======================================================================== Adding flake8-datetimez plugin to dev-flake8 dependencies... Skipped pyproject.toml (flake8-datetimez already present) ======================================================================== Fixing dependabot repo-config and mkdocstrings patterns... Skipped .github/dependabot.yml: repo-config patterns already updated Skipped .github/dependabot.yml: mkdocstrings patterns already updated Skipped .github/dependabot.yml (already up to date) ======================================================================== Migrating auto-dependabot workflow to use GitHub App token... Replacing .github/workflows/auto-dependabot.yaml with updated workflow (overwriting any local changes) ======================================================================== Migrating the CI workflows to use a platform matrix... - .github/workflows/ci.yaml Already uses platform matrix ======================================================================== Installing repo-config migration workflow... Replacing .github/workflows/repo-config-migration.yaml with updated workflow (overwriting any local changes) Updated .github/workflows/auto-dependabot.yaml: added repo-config group exclusion ======================================================================== Updating 'Protect version branches' GitHub ruleset... Ruleset 'Protect version branches' is already up to date ======================================================================== ``` Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
1 parent ca94a1e commit 8eeecb3

3 files changed

Lines changed: 5 additions & 12 deletions

File tree

.github/workflows/auto-dependabot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- name: Generate GitHub App token
2727
id: app-token
28-
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
28+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
2929
with:
3030
app-id: ${{ secrets.FREQUENZ_AUTO_DEPENDABOT_APP_ID }}
3131
private-key: ${{ secrets.FREQUENZ_AUTO_DEPENDABOT_APP_PRIVATE_KEY }}

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ jobs:
314314
publish-to-pypi:
315315
name: Publish packages to PyPI
316316
needs: ["create-github-release"]
317-
runs-on: ubuntu-24.04
317+
runs-on: ubuntu-slim
318318
permissions:
319319
# For trusted publishing. See:
320320
# https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/

.github/workflows/repo-config-migration.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
name: Repo Config Migration
2020

2121
on:
22-
merge_group: # To allow using this as a required check for merging
2322
pull_request_target:
2423
types: [opened, synchronize, reopened, labeled, unlabeled]
2524

@@ -31,23 +30,17 @@ permissions:
3130
jobs:
3231
repo-config-migration:
3332
name: Migrate Repo Config
34-
# Skip if it was triggered by the merge queue. We only need the workflow to
35-
# be executed to meet the "Required check" condition for merging, but we
36-
# don't need to actually run the job, having the job present as Skipped is
37-
# enough.
38-
if: |
39-
github.event_name == 'pull_request_target' &&
40-
contains(github.event.pull_request.title, 'the repo-config group')
33+
if: contains(github.event.pull_request.title, 'the repo-config group')
4134
runs-on: ubuntu-24.04
4235
steps:
4336
- name: Generate token
4437
id: create-app-token
45-
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
38+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
4639
with:
4740
app-id: ${{ secrets.FREQUENZ_AUTO_DEPENDABOT_APP_ID }}
4841
private-key: ${{ secrets.FREQUENZ_AUTO_DEPENDABOT_APP_PRIVATE_KEY }}
4942
- name: Migrate
50-
uses: frequenz-floss/gh-action-dependabot-migrate@45994e185a9040449304a470e8f02d0e197873b4 # v1.1.1
43+
uses: frequenz-floss/gh-action-dependabot-migrate@07dc7e74726498c50726a80cc2167a04d896508f # v1.0.0
5144
with:
5245
script-url-template: >-
5346
https://raw.githubusercontent.com/frequenz-floss/frequenz-repo-config-python/{version}/cookiecutter/migrate.py

0 commit comments

Comments
 (0)