Skip to content

Commit

Permalink
add changesets to Renovate updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcelhaney committed Oct 24, 2023
1 parent 280fca8 commit 05fc4dc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/renovte-changeset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Add changeset to Renovate updates

on:
pull_request_target:
types: [opened, synchronize, labeled]

jobs:
renovate:
name: Update Renovate PR
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'dependencies')

steps:
- name: Update PR
uses: mscharley/dependency-changesets-action@v1.0.0
with:
token: ${{ secrets.DEPENDENCY_UPDATE_GITHUB_TOKEN }}
use-semantic-commits: true
author-name: Renovate Changesets
author-email: github+renovate@scharley.me
4 changes: 3 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"extends": ["config:base"],
"rangeStrategy": "update-lockfile",
"enabledManagers": ["npm", "github-actions"],
"gitIgnoredAuthors": ["github+renovate@scharley.me"],
"packageRules": [
{
"matchManagers": ["npm"],
"description": "Automatically merge all updates",
"addLabels": ["npm", "dependencies"],
"automerge": true,
"stabilityDays": 3,
"prCreation": "not-pending",
Expand All @@ -14,8 +16,8 @@
},
{
"matchManagers": ["github-actions"],
"addLabels": ["github_actions"],
"description": "Automatically merge all updates",
"addLabels": ["github_actions", "dependencies"],
"automerge": true,
"stabilityDays": 3,
"prCreation": "not-pending"
Expand Down

0 comments on commit 05fc4dc

Please sign in to comment.