mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-16 08:52:35 +00:00
refactor: convert project to typescript (#47)
* refactor: convert project to typescript * fix: image as last argument of docker run * ci: remove example as the build can act as example * fix: set tokenEnv to RENOVATE_TOKEN * fix: add trailing single quite to Docker --env arguments * fix: mount volume with config file to Docker container * chore: remove Prettier trailingComma on all This puts it back at the default, which is es5 style. * fix: correct package main to dist/indes.js * fix: use @actions/exec to execute docker child process * fix: use async/await for exec Co-authored-by: Michael Kriese <michael.kriese@visualon.de> * fix: use async/await in the runner Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
parent
47a19ef007
commit
ec8a542458
14 changed files with 160 additions and 61 deletions
29
.github/config.js
vendored
29
.github/config.js
vendored
|
|
@ -1,29 +0,0 @@
|
|||
module.exports = {
|
||||
branchPrefix: 'test-renovate/',
|
||||
dryRun: true,
|
||||
gitAuthor: 'Renovate Bot <bot@renovateapp.com>',
|
||||
logLevel: 'debug',
|
||||
onboarding: false,
|
||||
platform: 'github',
|
||||
includeForks: true,
|
||||
repositories: [
|
||||
'renovatebot/github-action',
|
||||
'renovate-tests/cocoapods1',
|
||||
'renovate-tests/gomod1',
|
||||
],
|
||||
packageRules: [
|
||||
{
|
||||
description: 'lockFileMaintenance',
|
||||
updateTypes: [
|
||||
'pin',
|
||||
'digest',
|
||||
'patch',
|
||||
'minor',
|
||||
'major',
|
||||
'lockFileMaintenance',
|
||||
],
|
||||
masterIssueApproval: false,
|
||||
stabilityDays: 0,
|
||||
},
|
||||
],
|
||||
};
|
||||
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
|
@ -55,10 +55,14 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.1.0
|
||||
- name: Install project
|
||||
run: npm ci
|
||||
- name: Build
|
||||
run: npm run build
|
||||
- name: Renovate test
|
||||
uses: ./
|
||||
with:
|
||||
configurationFile: .github/config.js
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
||||
build:
|
||||
|
|
|
|||
17
.github/workflows/example.yml
vendored
17
.github/workflows/example.yml
vendored
|
|
@ -1,17 +0,0 @@
|
|||
name: Example
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
jobs:
|
||||
example:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.1.0
|
||||
- name: Renovate example
|
||||
uses: ./
|
||||
with:
|
||||
configurationFile: example/config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue