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:
Jeroen de Bruijn 2020-03-27 21:14:09 +01:00
parent 125ca9f3df
commit e99865b2ff
No known key found for this signature in database
GPG key ID: 3A2677A1DF38FF9F

View file

@ -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