Skip to content

Commit

Permalink
Replace renovate by workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bonddim committed Nov 10, 2024
1 parent 258110f commit cd1b82d
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 52 deletions.
23 changes: 0 additions & 23 deletions .github/renovate.json

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/renovate.yaml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Update

on:
workflow_dispatch:
schedule:
- cron: "0 7 * * *"

jobs:
auto:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.app_id }}
private-key: ${{ secrets.app_private_key }}
owner: ${{ github.repository_owner }}
repositories: ${{ github.repository }}

- uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Render mixins
run: make JB_ARGS=update

- uses: peter-evans/create-pull-request@v7
id: cpr
with:
token: ${{ steps.app-token.outputs.token }}
title: Update mixins
sign-commits: true

- name: Set automerge
run: gh pr merge ${{ steps.cpr.outputs.pull-request-number }} --auto --delete-branch --squash
if: ${{ steps.cpr.outputs.pull-request-operation == 'created' }}
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
2 changes: 1 addition & 1 deletion jsonnetfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"subdir": ""
}
},
"version": "bdbf7f45cedf37d07567be7519fa4139043f9335"
"version": "master"
}
],
"legacyImports": true,
Expand Down

0 comments on commit cd1b82d

Please sign in to comment.