Repository navigation
fix: run neovim-upgrade in dev shell on CI and add daily Renovate workflow #770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
e878e96
9ac4643
fa470e3
bcb6fb8
24a8d34
cbeb9aa
5666f8f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: Renovate | ||
| on: | ||
| schedule: | ||
| - cron: '0 3 * * *' | ||
| workflow_dispatch: | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.sha }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| renovate: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| - name: Renovate | ||
| uses: renovatebot/github-action@v46.0.2 | ||
| with: | ||
| configurationFile: renovate.json | ||
| token: ${{ secrets.PAT_TOKEN }} | ||
| renovate-check: | ||
| if: always() | ||
| needs: | ||
| - renovate | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 3 | ||
| steps: | ||
| - name: Alls Green | ||
| uses: re-actors/alls-green@release/v1 | ||
| with: | ||
| jobs: ${{ toJSON(needs) }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -583,9 +583,18 @@ neovim-dev: ## Set up local Neovim development environment. | |
| .PHONY: neovim-upgrade | ||
| neovim-upgrade: ## Update Neovim plugins. | ||
| @echo "📦 Updating neovim plugins..." | ||
| @nvim --headless +"lua vim.pack.update()" +qa | ||
| @if [ "$$CI" = "true" ] || [ "$$IN_DOCKER" = "true" ]; then \ | ||
| $(MAKE) neovim-upgrade-dev; \ | ||
| else \ | ||
|
||
| nvim --headless +"lua vim.pack.update()" +qa; \ | ||
| fi | ||
| @echo "✅ Neovim plugins updated" | ||
|
|
||
| .PHONY: neovim-upgrade-dev | ||
| neovim-upgrade-dev: ## Update Neovim plugins inside the Nix dev shell (mirrors CI). | ||
| @echo "📦 Updating neovim plugins inside the Nix dev shell..." | ||
| @DEVENV_ROOT=$(CURDIR) $(NIX_ALLOW_UNFREE) $(NIX_EXEC) develop $(NIX_FLAGS) .# --command $(MAKE) neovim-upgrade | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The current implementation of
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The variable Additionally, the environment variables
|
||
|
|
||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
| .PHONY: neovim-sync | ||
| neovim-sync: neovim-upgrade ## Sync Neovim plugins. | ||
| @echo "🔄 Syncing neovim plugins..." | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The concurrency
groupincludes${{ github.sha }}, which changes on every scheduled run; this preventscancel-in-progress: truefrom cancelling a previous still-running scheduled Renovate job (each run will end up in a different group). For schedule-based workflows, consider using a stable key like${{ github.workflow }}-${{ github.event_name }}(optionally plus${{ github.ref }}) so overlapping runs get cancelled as intended.