mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-16 17:02:36 +00:00
docs: reference github-renovate repo for seeing this in action
Also update example to run on a schedule and pin action versions.
This commit is contained in:
parent
125ca9f3df
commit
e99865b2ff
1 changed files with 11 additions and 6 deletions
17
README.md
17
README.md
|
|
@ -53,18 +53,23 @@ Note that the [`GITHUB_TOKEN`](https://help.github.com/en/actions/configuring-an
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
This example uses a personal access token that is a GitHub secret named `RENOVATE_TOKEN`.
|
This example uses a personal access token and will run every 15 minutes. The personal access token is configured as a GitHub secret named `RENOVATE_TOKEN`. This example uses the [`example/config.js`](./example/config.js) file as configuration.
|
||||||
|
You can also see a live example of this action in my [github-renovate](https://github.com/vidavidorra/github-renovate) repository, which also includes a more [advanced configuration](https://github.com/vidavidorra/github-renovate/blob/master/src/config.js) for updating GitHub Action workflows.
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
name: Example
|
name: Renovate
|
||||||
on: push
|
on:
|
||||||
|
schedule:
|
||||||
|
# The "*" (#42, asterisk) character has special semantics in YAML, so this
|
||||||
|
# string has to be quoted.
|
||||||
|
- cron: '0/15 * * * *'
|
||||||
jobs:
|
jobs:
|
||||||
example:
|
renovate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2.0.0
|
||||||
- name: Self-hosted Renovate example
|
- name: Self-hosted Renovate
|
||||||
uses: vidavidorra/github-action-renovate@v1.0.0
|
uses: vidavidorra/github-action-renovate@v1.0.0
|
||||||
with:
|
with:
|
||||||
configurationFile: example/config.js
|
configurationFile: example/config.js
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue