Skip to content

Commit

Permalink
Merge pull request #14 from CubicrootXYZ/renovate
Browse files Browse the repository at this point in the history
add a renovate workflow
  • Loading branch information
CubicrootXYZ authored Oct 21, 2024
2 parents 9cc7a18 + cbbbf05 commit 0c66aa7
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
workflow_call:
inputs:
author:
required: false
type: string
default: "Renovate <[email protected]>"
secrets:
token:
required: true

jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Run Renovate
uses: docker://renovate/renovate:latest
env:
RENOVATE_REPOSITORIES: ${{ github.repository }}
RENOVATE_TOKEN: ${{ secrets.token }}
RENOVATE_AUTOMERGE: "false"
RENOVATE_ONBOARDING: "false"
RENOVATE_GIT_AUTHOR: "${{ inputs.author }}"
7 changes: 7 additions & 0 deletions .github/workflows/renovate_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
on: push

jobs:
renovate_test:
uses: ./.github/workflows/renovate.yaml
secrets:
token: "${{ secrets.RENOVATE_TOKEN }}"
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,18 @@ jobs:
with:
artifact_name: static-html
artifact_path: index.html
```

## Renovate

Create a new access token and set it as `RENOVATE_TOKEN` repo secret.

```yaml
jobs:
renovate_test:
uses: ./.github/workflows/renovate.yaml
with:
author: "Max <[email protected]>"
secrets:
token: "${{ secrets.RENOVATE_TOKEN }}"
```

0 comments on commit 0c66aa7

Please sign in to comment.