-
Notifications
You must be signed in to change notification settings - Fork 0
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 all commits
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 | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,8 @@ | ||||||
| name: Upgrade | ||||||
| on: | ||||||
| pull_request: | ||||||
| schedule: | ||||||
| - cron: '0 2 * * *' | ||||||
| - cron: '0 3 * * *' | ||||||
| workflow_dispatch: | ||||||
| concurrency: | ||||||
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.sha }} | ||||||
|
|
@@ -21,11 +22,12 @@ jobs: | |||||
| with: | ||||||
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||||||
| - name: Run Upgrade | ||||||
| run: make upgrade | ||||||
| run: make upgrade-dev | ||||||
| env: | ||||||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
| SKIP_HOME_MANAGER_SWITCH: "true" | ||||||
| - name: Create Pull Request | ||||||
| if: github.action != 'pull_request' | ||||||
|
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. Bug:
Proposed fix- if: github.action != 'pull_request'
+ if: github.event_name != 'pull_request'📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| id: cpr | ||||||
| uses: peter-evans/create-pull-request@v8 | ||||||
| with: | ||||||
|
|
||||||
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.