Skip to content

Commit

Permalink
feat: Add GH workflow for Renovate (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
blarghmatey authored Aug 1, 2024
1 parent 82aa382 commit c106826
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 7 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,11 @@ jobs:
- name: Install dependencies
run: rye sync

# - name: Lints
# run: 'pants lint ::'

# - name: Typecheck
# run: 'pants typecheck ::'

- name: Tests
run: rye test

- name: Changelog
if: ${{ !contains(github.event.head_commit.author, 'renovate') }}
run: rye run build changelog check

# - name: Upload coverage to CodeCov
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Renovate
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
permissions:
pull-requests: write
contents: write
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.6

- name: Apt install
run: sudo apt-get update && sudo apt-get install -y libxmlsec1-dev

- uses: eifinger/setup-rye@v4
id: setup-rye

- name: Self-hosted Renovate
uses: renovatebot/github-action@v40.2.4
with:
configurationFile: renovate-config.json
token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions renovate-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"allowedPostUpgradeCommands": [
"rye .*"
]
}
7 changes: 6 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>mitodl/.github:renovate-config"
]
],
"postUpgradeTasks": {
"commands": ["rye sync"],
"fileFilters": ["requirements*.lock"],
"executionMode": "update"
}
}

0 comments on commit c106826

Please sign in to comment.