Skip to content

Commit

Permalink
feat!: update to @bfra-me/renovate-action v5 (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusrbrown authored Nov 28, 2024
1 parent aa24c7e commit e192f12
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .changeset/shiny-fishes-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@bfra.me/.github": major
---

Update to @bfra-me/renovate-action v5

15 changes: 8 additions & 7 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,22 @@
allowedVersions: '<=3.12',
},
{
description: 'Enable SemVer digest pinning of @bfra-me GitHub actions, reusable workflows, and Renovate config presets.',
matchDatasources: ['github-tags'],
matchPackageNames: ['@bfra.me/**', 'bfra-me/**'],
description: 'Enable SemVer pinning of @bfra-me GitHub actions, reusable workflows, and Renovate config presets.',
matchPackageNames: ['@bfra.me/{/,}**', 'bfra-me/{/,}**'],
pinDigests: false,
updatePinnedDependencies: false,
},
{
description: 'Enable SemVer digest pinning of @bfra-me GitHub actions, reusable workflows, and Renovate config presets.',
matchDatasources: ['github-tags'],
matchPackageNames: ['@bfra.me/**', 'bfra-me/**'],
description: 'Enable SemVer pinning of @bfra-me GitHub actions, reusable workflows, and Renovate config presets.',
matchPackageNames: ['@bfra.me/{/,}**', 'bfra-me/{/,}**'],
matchUpdateTypes: ['major'],
pinDigests: false,
rangeStrategy: 'bump',
updatePinnedDependencies: true,
},
],
postUpgradeTasks: {
commands: ['pnpm install --frozen-lockfile --ignore-scripts', 'pnpm run format'],
commands: ['pnpm run bootstrap', 'pnpm run format'],
executionMode: 'branch',
},
prCreation: 'not-pending',
Expand Down
4 changes: 2 additions & 2 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ branches:
- name: main
protection:
required_status_checks:
strict: false
contexts: ['Lint', 'Release', 'Renovate']
strict: true
contexts: ['Create Renovate Changeset', 'Lint', 'Release', 'Renovate']
enforce_admins: true
required_pull_request_reviews: null
restrictions: null
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ jobs:
with:
app-id: ${{ secrets.APPLICATION_ID }}
private-key: ${{ secrets.APPLICATION_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Setup Git user
run: |
git config --global user.email '118100583+bfra-me[bot]@users.noreply.github.com'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/renovate-changeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ name: Create Renovate Changeset
merge_group:
pull_request_target:

permissions:
contents: read

jobs:
create-changeset:
name: Create Renovate Changeset
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
dry_run: ${{ github.event_name == 'push' && github.ref != 'refs/heads/main' }}
if: >-
${{ !contains('["push", "workflow_run"]', github.event_name) || github.event.workflow_run.conclusion == 'success' || steps.filter.outputs.changes == 'true' }}
uses: bfra-me/renovate-action@v4
uses: bfra-me/renovate-action@v5
with:
autodiscover: ${{ env.autodiscover }}
branch: ${{ (github.ref_name != github.event.repository.default_branch || env.dry_run == 'true') && ( github.head_ref || github.ref_name ) || '' }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/update-repo-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ jobs:
with:
app-id: ${{ secrets.APPLICATION_ID }}
private-key: ${{ secrets.APPLICATION_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

- env:
GITHUB_TOKEN: ${{ steps.get-workflow-access-token.outputs.token }}
Expand Down

0 comments on commit e192f12

Please sign in to comment.