Compare commits

..
1 Commits
Author SHA1 Message Date
github-actions[bot] 3ac9d13fb2 chore(release): 19.230.0 2020-05-05 07:48:45 +00:00
13 changed files with 1157 additions and 1266 deletions

No files matched your search

+3 -4
View File
@@ -3,8 +3,7 @@
"config:base",
":rebaseStalePrs",
":pinDependencies",
":masterIssue",
"docker:enableMajor"
":masterIssue"
],
"prCreation": "not-pending",
"lockFileMaintenance": {
@@ -23,9 +22,9 @@
"automerge": true
},
{
"description": "Automerge Renovate updates",
"description": "Automerge renovate minor and patch updates",
"packageNames": ["renovate/renovate"],
"updateTypes": ["major", "minor", "patch"],
"updateTypes": ["minor", "patch"],
"semanticCommitType": "fix",
"automerge": true
}
+2 -63
View File
@@ -52,10 +52,6 @@ jobs:
e2e:
needs: [cleanup]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
configurationFile: [example/renovate-config.js, example/renovate.json]
steps:
- name: Checkout
uses: actions/checkout@v2.1.0
@@ -66,68 +62,11 @@ jobs:
- name: Renovate test
uses: ./
with:
configurationFile: ${{ matrix.configurationFile }}
configurationFile: example/renovate-config.js
token: ${{ secrets.RENOVATE_TOKEN }}
build:
needs: [lint, commitlint, e2e]
runs-on: ubuntu-latest
steps:
- run: echo 'dummy'
release:
needs: [build]
runs-on: ubuntu-latest
if: |
startsWith(github.event.commits[0].message,
'fix(deps): update renovate/renovate docker tag ')
&& github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v2.1.0
with:
fetch-depth: 0
ref: 'release'
- name: Fetch tags
run: git fetch --tags
- name: Setup Git user
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Merge master
run: |
git merge -m 'chore(release): merge master (${{ github.sha }})' ${{ github.sha }}
- name: Setup node
uses: actions/setup-node@v1.4.1
with:
node-version: '12.x'
- name: Install project
run: npm ci --ignore-scripts
- name: Get version
id: release
run: npm run release:version
- name: Release
run: npm run release -- "${{ steps.release.outputs.version }}"
- name: Get changelog section
id: changelog
run: |
changelog="$(git show --unified=0 CHANGELOG.md \
| tail +12 \
| sed -e 's/^\+//' \
| sed -z 's/\n/%0A/g;s/\r/%0D/g')"
echo "::set-output name=changelog::${changelog}"
- name: Publish release
run: git push --follow-tags
- name: Publish GitHub release
uses: actions/create-release@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.release.outputs.version }}
release_name: v${{ steps.release.outputs.version }}
body: |
*See the the [changelog](
https://github.com/${{ github.repository }}/blob/release/CHANGELOG.md
) for changes in all releases.*
${{ steps.changelog.outputs.changelog }}
- run: echo 'Dummy'
+65
View File
@@ -0,0 +1,65 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
if: |
startsWith(github.event.commits[0].message, 'fix(deps): update renovate/renovate docker tag ')
steps:
- name: Checkout
uses: actions/checkout@v2.1.0
with:
fetch-depth: 0
- name: Fetch tags
run: git fetch --tags
- name: Setup Git user
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Setup node
uses: actions/setup-node@v1.4.1
with:
node-version: '12.x'
- name: Install project
run: npm ci
- name: Release
run: |
SEMVER_REGEX="v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)"
if [[ ! "${{ github.event.commits[0].message }}" =~ ${SEMVER_REGEX} ]]; then
echo Not a semver like version - aborting: ${1}
exit 1
fi
NEXT_VERSION="${BASH_REMATCH[1]}.${BASH_REMATCH[2]}.${BASH_REMATCH[3]}"
MAJOR_VERSION="${BASH_REMATCH[1]}"
echo "::set-env name=NEXT_VERSION::${NEXT_VERSION}"
echo "::set-env name=MAJOR_VERSION::${MAJOR_VERSION}"
npm version ${NEXT_VERSION} -m "chore(release): ${NEXT_VERSION}"
git tag "v${MAJOR_VERSION}"
- name: Publish release
run: |
git push origin "v${NEXT_VERSION}"
git push -f origin "v${MAJOR_VERSION}"
# - name: Publish GitHub release
# uses: actions/create-release@v1.0.1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: v${{ env.NEXT_VERSION }}
# release_name: v${{ env.NEXT_VERSION }}
# body: |
# See the the [changelog](
# https://github.com/${{ github.repository }}/blob/master/CHANGELOG.md
# ) for the changes included in this release.
prevent_failed_status:
name: Prevent failed status when skipped
runs-on: ubuntu-latest
steps:
- name: Prevent failed status when skipped
run: |
echo "Run this job to prevent the workflow status from showing as" \
"failed when all other jobs are skipped."
+1 -2
View File
@@ -1,7 +1,6 @@
module.exports = {
scripts: {
prerelease:
'if [ "$(git branch --show-current)" != "release" ]; then exit 1; fi',
'if [ "$(git branch --show-current)" != "master" ]; then exit 1; fi',
},
commitAll: true,
};
+18 -143
View File
@@ -2,169 +2,44 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [21.12.3](https://github.com/renovatebot/github-action/compare/v21.12.2...v21.12.3) (2020-06-17)
### [1.0.5](https://github.com/vidavidorra/github-action-renovate/compare/v1.0.4...v1.0.5) (2020-03-30)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v21.12.3 ([#127](https://github.com/renovatebot/github-action/issues/127)) ([ceea28a](https://github.com/renovatebot/github-action/commit/ceea28a222dd9897007117eab8661bfc69ac8673))
### [21.12.2](https://github.com/renovatebot/github-action/compare/v21.6.3...v21.12.2) (2020-06-17)
- **deps:** update renovate/renovate docker tag to v19.189.0 ([#11](https://github.com/vidavidorra/github-action-renovate/issues/11)) ([df74dfa](https://github.com/vidavidorra/github-action-renovate/commit/df74dfa0053acfbf2db3f782f5c042065b9807f5))
### [1.0.4](https://github.com/vidavidorra/github-action-renovate/compare/v1.0.3...v1.0.4) (2020-03-28)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v21.12.2 ([#125](https://github.com/renovatebot/github-action/issues/125)) ([20dbb93](https://github.com/renovatebot/github-action/commit/20dbb93906723e2f130de4e0474b2fbc1bcd7ed9))
### [21.6.3](https://github.com/renovatebot/github-action/compare/v21.6.2...v21.6.3) (2020-06-10)
- **deps:** update renovate/renovate docker tag to v19.184.2 ([#10](https://github.com/vidavidorra/github-action-renovate/issues/10)) ([32ae3cb](https://github.com/vidavidorra/github-action-renovate/commit/32ae3cb974963fdc7987adee6de3ad402ca2361b))
### [1.0.3](https://github.com/vidavidorra/github-action-renovate/compare/v1.0.2...v1.0.3) (2020-03-27)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v21.6.3 ([#121](https://github.com/renovatebot/github-action/issues/121)) ([e18a8f2](https://github.com/renovatebot/github-action/commit/e18a8f29664e0ef81a48cf5c936d57f86b18bd65))
### [21.6.2](https://github.com/renovatebot/github-action/compare/v21.6.1...v21.6.2) (2020-06-10)
- **deps:** update renovate/renovate docker tag to v19.181.0 ([#8](https://github.com/vidavidorra/github-action-renovate/issues/8)) ([9b29fd3](https://github.com/vidavidorra/github-action-renovate/commit/9b29fd34fe1d09431e3b7967c5c4c71f4b8e67d6))
- **deps:** update renovate/renovate docker tag to v19.184.0 ([#9](https://github.com/vidavidorra/github-action-renovate/issues/9)) ([de6975e](https://github.com/vidavidorra/github-action-renovate/commit/de6975e31a6c1c301f86ea5d04dd3e8579e5d815))
### [1.0.2](https://github.com/vidavidorra/github-action-renovate/compare/v1.0.1...v1.0.2) (2020-03-22)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v21.6.2 ([#120](https://github.com/renovatebot/github-action/issues/120)) ([fbfed9c](https://github.com/renovatebot/github-action/commit/fbfed9cba486eadc74e96a3733cece2055fdedc3))
- **deps:** update renovate/renovate docker tag to v19.176.3 ([9957aeb](https://github.com/vidavidorra/github-action-renovate/commit/9957aeba72b45e1fcc9a87b8532a52ad2464a526))
### [21.6.1](https://github.com/renovatebot/github-action/compare/v19.239.11...v21.6.1) (2020-06-10)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v21.6.1 ([#118](https://github.com/renovatebot/github-action/issues/118)) ([0a2f23d](https://github.com/renovatebot/github-action/commit/0a2f23dbd54069faa2efe37bad585f7e4ad353a0))
### [19.239.11](https://github.com/renovatebot/github-action/compare/v19.239.9...v19.239.11) (2020-05-19)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v19.239.11 ([#99](https://github.com/renovatebot/github-action/issues/99)) ([2823601](https://github.com/renovatebot/github-action/commit/28236016589577840d82643e08d2cc618dbe1456))
### [19.239.9](https://github.com/renovatebot/github-action/compare/v19.239.8...v19.239.9) (2020-05-19)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v19.239.9 ([#98](https://github.com/renovatebot/github-action/issues/98)) ([852e465](https://github.com/renovatebot/github-action/commit/852e465ea1843d14f481f554928dfd4050c770cb))
### [19.239.8](https://github.com/renovatebot/github-action/compare/v19.239.7...v19.239.8) (2020-05-17)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v19.239.8 ([#93](https://github.com/renovatebot/github-action/issues/93)) ([5850cc4](https://github.com/renovatebot/github-action/commit/5850cc49e616cf9759d9059601576d7a3836d419))
### [19.239.7](https://github.com/renovatebot/github-action/compare/v19.239.6...v19.239.7) (2020-05-16)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v19.239.7 ([#92](https://github.com/renovatebot/github-action/issues/92)) ([82dc686](https://github.com/renovatebot/github-action/commit/82dc686e094175a30b040de3f737689d17f361a3))
### [19.239.6](https://github.com/renovatebot/github-action/compare/v19.239.5...v19.239.6) (2020-05-16)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v19.239.6 ([#91](https://github.com/renovatebot/github-action/issues/91)) ([f6be319](https://github.com/renovatebot/github-action/commit/f6be319d0253ca914bd75d3615ef54e27f750b2e))
### [19.239.5](https://github.com/renovatebot/github-action/compare/v19.239.3...v19.239.5) (2020-05-15)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v19.239.5 ([#90](https://github.com/renovatebot/github-action/issues/90)) ([4639fdc](https://github.com/renovatebot/github-action/commit/4639fdc50849a76495963a929223585bbf23d155))
### [19.239.3](https://github.com/renovatebot/github-action/compare/v19.239.1...v19.239.3) (2020-05-15)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v19.239.3 ([#89](https://github.com/renovatebot/github-action/issues/89)) ([0480025](https://github.com/renovatebot/github-action/commit/0480025bbd547605d286c14671a211b4d2cbd85f))
### [19.239.1](https://github.com/renovatebot/github-action/compare/v19.238.2...v19.239.1) (2020-05-14)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v19.239.1 ([#88](https://github.com/renovatebot/github-action/issues/88)) ([82431c8](https://github.com/renovatebot/github-action/commit/82431c88b08e98eb0ab60a5beccd0ba1fd8de3bd))
### [19.238.2](https://github.com/renovatebot/github-action/compare/v19.238.0...v19.238.2) (2020-05-13)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v19.238.2 ([#87](https://github.com/renovatebot/github-action/issues/87)) ([543edf7](https://github.com/renovatebot/github-action/commit/543edf75766c8d224f868f870547755697c1f23e))
## [19.238.0](https://github.com/renovatebot/github-action/compare/v19.236.4...v19.238.0) (2020-05-13)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v19.238.0 ([#83](https://github.com/renovatebot/github-action/issues/83)) ([5272bee](https://github.com/renovatebot/github-action/commit/5272bee78d0ed9d89bada2dbd0064652ea52a14b))
### [19.236.4](https://github.com/renovatebot/github-action/compare/v19.236.3...v19.236.4) (2020-05-12)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v19.236.4 ([#82](https://github.com/renovatebot/github-action/issues/82)) ([a6a2a3e](https://github.com/renovatebot/github-action/commit/a6a2a3ee7f3d36ad87d59379ea41cfd38b650805))
### [19.236.3](https://github.com/renovatebot/github-action/compare/v19.236.1...v19.236.3) (2020-05-12)
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v19.236.3 ([#81](https://github.com/renovatebot/github-action/issues/81)) ([9f348f9](https://github.com/renovatebot/github-action/commit/9f348f90a0d2464b5607501a43cb0e0c583b4865))
### [19.236.1](https://github.com/renovatebot/github-action/compare/v1.0.5...v19.236.1) (2020-05-11)
### [1.0.1](https://github.com/vidavidorra/github-action-renovate/compare/v1.0.0...v1.0.1) (2020-03-20)
## 1.0.0 (2020-03-20)
### Features
* **config:** add support for regular Renovate config files ([#79](https://github.com/renovatebot/github-action/issues/79)) ([fa9be05](https://github.com/renovatebot/github-action/commit/fa9be0537ade4fba30d32086f525cab773f6cb0f))
* use slim image ([#61](https://github.com/renovatebot/github-action/issues/61)) ([9b86457](https://github.com/renovatebot/github-action/commit/9b8645713ec22be0ea533fa9fe0004c8c1b5b92b))
* **ci:** auto release ([#53](https://github.com/renovatebot/github-action/issues/53)) ([6cef3bd](https://github.com/renovatebot/github-action/commit/6cef3bd05f55f59217de65ecb87503b5695a9e13))
* simplify entrypoint ([#27](https://github.com/renovatebot/github-action/issues/27)) ([1e1bc63](https://github.com/renovatebot/github-action/commit/1e1bc634ac4b3d41d5bd2b59bc649d39013268e7))
- add self-hosted renovate sources ([5f5662b](https://github.com/vidavidorra/github-action-renovate/commit/5f5662bb8600d82e9e23ac911d56ec943ab3c0ff))
- add token input and account for Renovate WORKDIR ([cd4dee3](https://github.com/vidavidorra/github-action-renovate/commit/cd4dee329720030349b278460f2f6ff8ddaca4c4))
### Bug Fixes
* **deps:** update renovate/renovate docker tag to v19.236.1 ([#77](https://github.com/renovatebot/github-action/issues/77)) ([0db5293](https://github.com/renovatebot/github-action/commit/0db5293686389ae9f6f548f925d1c236ae552f34))
* throw error if docker group cannot be found ([#78](https://github.com/renovatebot/github-action/issues/78)) ([3aa7224](https://github.com/renovatebot/github-action/commit/3aa72249b9d8787c333da7dcd0c6f1a92170e869))
* **deps:** update renovate/renovate docker tag to v19.193.0 ([#15](https://github.com/renovatebot/github-action/issues/15)) ([d073690](https://github.com/renovatebot/github-action/commit/d073690b294a9a705e5ae0eac9920a97b83b8b3b))
* **deps:** update renovate/renovate docker tag to v19.205.0 ([#2](https://github.com/renovatebot/github-action/issues/2)) ([fedcf83](https://github.com/renovatebot/github-action/commit/fedcf83698d59f4bd07c89ee4c0fe15bf58d720d))
* **deps:** update renovate/renovate docker tag to v19.219.11 ([#12](https://github.com/renovatebot/github-action/issues/12)) ([93b5157](https://github.com/renovatebot/github-action/commit/93b5157f02e0f5f35dcdd86c3c3159329371751d))
* **deps:** update renovate/renovate docker tag to v19.223.1 ([#32](https://github.com/renovatebot/github-action/issues/32)) ([ac44213](https://github.com/renovatebot/github-action/commit/ac442134d9bd229c6ffd098269aa976677c30ce1))
* **deps:** update renovate/renovate docker tag to v19.224.0 ([#34](https://github.com/renovatebot/github-action/issues/34)) ([038d56e](https://github.com/renovatebot/github-action/commit/038d56edc43d3719f489a2a2d18f4a3f6be54b30))
* **deps:** update renovate/renovate docker tag to v19.225.1 ([#36](https://github.com/renovatebot/github-action/issues/36)) ([821a4ec](https://github.com/renovatebot/github-action/commit/821a4ec20811c2137b22460b890c84f1a54122ca))
* **deps:** update renovate/renovate docker tag to v19.225.3 ([#37](https://github.com/renovatebot/github-action/issues/37)) ([16eea89](https://github.com/renovatebot/github-action/commit/16eea8909192034b4b2f83533e1f31d7b1464a8b))
* **deps:** update renovate/renovate docker tag to v19.225.4 ([#39](https://github.com/renovatebot/github-action/issues/39)) ([5ce22e8](https://github.com/renovatebot/github-action/commit/5ce22e8eeb251ea1ebe4e64ae66a01ab5c21a164))
* **deps:** update renovate/renovate docker tag to v19.225.5 ([#40](https://github.com/renovatebot/github-action/issues/40)) ([5ee3f6a](https://github.com/renovatebot/github-action/commit/5ee3f6ab2f36c4c9ad0cfbcc2619a0135471a10a))
* **deps:** update renovate/renovate docker tag to v19.226.0 ([#41](https://github.com/renovatebot/github-action/issues/41)) ([d94a0f7](https://github.com/renovatebot/github-action/commit/d94a0f76eb1a228c81fdcf47b9b3287bf812a0a0))
* **deps:** update renovate/renovate docker tag to v19.227.0 ([#42](https://github.com/renovatebot/github-action/issues/42)) ([a9920c0](https://github.com/renovatebot/github-action/commit/a9920c014aebc28dc1b23e7efcc006d0455cc710))
* **deps:** update renovate/renovate docker tag to v19.228.1 ([#43](https://github.com/renovatebot/github-action/issues/43)) ([eb356b1](https://github.com/renovatebot/github-action/commit/eb356b1448435a8db429930226a08c0129f39e7d))
* **deps:** update renovate/renovate docker tag to v19.228.2 ([#46](https://github.com/renovatebot/github-action/issues/46)) ([47a19ef](https://github.com/renovatebot/github-action/commit/47a19ef007470843503a03f4e9d3ac743b148a07))
* **deps:** update renovate/renovate docker tag to v19.230.0 ([#54](https://github.com/renovatebot/github-action/issues/54)) ([a5d0eb0](https://github.com/renovatebot/github-action/commit/a5d0eb0c635fb69e30031226c42dc7ce618b0e4f))
* **deps:** update renovate/renovate docker tag to v19.230.2 ([#56](https://github.com/renovatebot/github-action/issues/56)) ([02d919f](https://github.com/renovatebot/github-action/commit/02d919f609d551a0af38ab9ad2d19b59956eb8f2))
* **deps:** update renovate/renovate docker tag to v19.231.11 ([#64](https://github.com/renovatebot/github-action/issues/64)) ([dea0781](https://github.com/renovatebot/github-action/commit/dea0781e643eafcfb228cbfdc04f737e88f6f956))
* **deps:** update renovate/renovate docker tag to v19.231.12 ([#66](https://github.com/renovatebot/github-action/issues/66)) ([ea9e7f2](https://github.com/renovatebot/github-action/commit/ea9e7f263f4a340e2a2277232e64e061213442d1))
* **deps:** update renovate/renovate docker tag to v19.231.13 ([#67](https://github.com/renovatebot/github-action/issues/67)) ([35d3d8f](https://github.com/renovatebot/github-action/commit/35d3d8fb022c6cc5e8d99533db4da975c6341631))
* **deps:** update renovate/renovate docker tag to v19.231.2 ([#57](https://github.com/renovatebot/github-action/issues/57)) ([df05f8e](https://github.com/renovatebot/github-action/commit/df05f8e6e419b4027da5eab7c32017b9e62aaa91))
* **deps:** update renovate/renovate docker tag to v19.231.4 ([#59](https://github.com/renovatebot/github-action/issues/59)) ([57c757f](https://github.com/renovatebot/github-action/commit/57c757fdb53893009f5eccd4ce5c11c9374ffb6c))
* **deps:** update renovate/renovate docker tag to v19.231.8 ([#60](https://github.com/renovatebot/github-action/issues/60)) ([8228a8e](https://github.com/renovatebot/github-action/commit/8228a8e5b2ec1b6c214d4f710eb96a9be91618fc))
* **deps:** update renovate/renovate docker tag to v19.231.9 ([#63](https://github.com/renovatebot/github-action/issues/63)) ([669900c](https://github.com/renovatebot/github-action/commit/669900c8b08650a6230228039ca6665f29a39cd0))
* **deps:** update renovate/renovate docker tag to v19.232.0 ([#68](https://github.com/renovatebot/github-action/issues/68)) ([7def629](https://github.com/renovatebot/github-action/commit/7def629d15f744e4fa64797ac7236fccdb3502e6))
* **deps:** update renovate/renovate docker tag to v19.233.2 ([#69](https://github.com/renovatebot/github-action/issues/69)) ([d9bdbcb](https://github.com/renovatebot/github-action/commit/d9bdbcb3945b095e0881d680e96442c514c4e8a7))
* **deps:** update renovate/renovate docker tag to v19.233.4 ([#70](https://github.com/renovatebot/github-action/issues/70)) ([cc4f9ef](https://github.com/renovatebot/github-action/commit/cc4f9ef52672685d952dd8e836bc76524e4b3739))
* **deps:** update renovate/renovate docker tag to v19.234.0 ([#71](https://github.com/renovatebot/github-action/issues/71)) ([2f62595](https://github.com/renovatebot/github-action/commit/2f625955514b5452bbc8287385cbde4890460e03))
* **deps:** update renovate/renovate docker tag to v19.234.1 ([#72](https://github.com/renovatebot/github-action/issues/72)) ([a5501b9](https://github.com/renovatebot/github-action/commit/a5501b90ee6db583b7d2955965d498f682de7596))
* **deps:** update renovate/renovate docker tag to v19.236.0 ([#74](https://github.com/renovatebot/github-action/issues/74)) ([d34a600](https://github.com/renovatebot/github-action/commit/d34a600029121c79253cd1254d95cdc2b3aa9619))
# Changelog
The changelog is only available on the `releases` branch. Please refer to [CHANGELOG.md](https://github.com/renovatebot/github-action/blob/releases/CHANGELOG.md) there.
- add chmod+x for entrypoint ([f0979c4](https://github.com/vidavidorra/github-action-renovate/commit/f0979c49826eb1885a487e12c30cea1650e7266b))
- correct COPY in dockerfile for relative path ([341841e](https://github.com/vidavidorra/github-action-renovate/commit/341841ebc60c5c2a221ed49db2f91326bcd0cdd8))
- prefix configuration file with GitHub workspace dir ([26124b0](https://github.com/vidavidorra/github-action-renovate/commit/26124b07e464ef56a31f3e77425052bb67ac8a20))
- the Dockerfile MUST have a lowercase F for GitHub Action to work ([3e4d5f0](https://github.com/vidavidorra/github-action-renovate/commit/3e4d5f0dd6da60c4277b72bb0a26dd4dd2707dd7))
- typo in action 9DockerFile) ([5525465](https://github.com/vidavidorra/github-action-renovate/commit/5525465215bf73411f8a5b436105a1fc8175e031))
+14 -6
View File
@@ -8,11 +8,13 @@ GitHub Action to run Renovate self-hosted.
- [Badges](#badges)
- [Options](#options)
- [`configurationFile`](#configurationfile)
- [`token`](#token)
- [`configurationFile`](#option-configurationFile)
- [`token`](#option-token)
- [Example](#example)
- [License](#license)
<a name="badges"></a>
## Badges
| Badge | Description | Service |
@@ -23,13 +25,15 @@ GitHub Action to run Renovate self-hosted.
| <a href="https://github.com/renovatebot/github-action/actions"><img alt="GitHub workflow status" src="https://img.shields.io/github/workflow/status/renovatebot/github-action/Build?style=flat-square"></a> | Build | GitHub Actions |
| <a href="https://github.com/renovatebot/github-action/actions"><img alt="GitHub workflow status" src="https://img.shields.io/github/workflow/status/renovatebot/github-action/Example?style=flat-square"></a> | Example | GitHub Actions |
<a name="options"></a>
## Options
<a name="option-configurationFile"></a>
## `configurationFile`
Configuration file to configure Renovate. The supported configurations files can be one of the configuration files listed in the Renovate Docs for [Configuration Options](https://docs.renovatebot.com/configuration-options/) or a JavaScript file that exports a configuration object. For both of these options, an example can be found in the [example](./example) directory.
The configurations that can be done in this file consists of two parts, as listed below. Refer to the links to the [Renovate Docs](https://docs.renovatebot.com/) for all options.
Configuration file to configure Renovate. The configurations that can be done in this file consists of two parts, as listed below. Refer to the links to the [Renovate Docs](https://docs.renovatebot.com/) for all options and see the [`example/config.js`](./example/config.js) for an example configuration.
1. [Self-Hosted Configuration Options](https://docs.renovatebot.com/self-hosted-configuration/)
2. [Configuration Options](https://docs.renovatebot.com/configuration-options/)
@@ -43,12 +47,16 @@ If you want to use this with just the single configuration file, make sure to in
requireConfig: false,
```
<a name="option-token"></a>
## `token`
[Generate a personal access token](https://github.com/settings/tokens), with the `repo:public_repo` scope for only public repositories or the `repo` scope for public and private repositories, and add it to _Secrets_ (repository settings) as `RENOVATE_TOKEN`. You can also create a token without a specific scope, which gives read-only access to public repositories, for testing. This token is only used by Renovate, see the [token configuration](https://docs.renovatebot.com/self-hosted-configuration/#token), and gives it access to the repositories. The name of the secret can be anything as long as it matches the argument given to the `token` option.
Note that the [`GITHUB_TOKEN`](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token) secret can't be used for authenticating Renovate.
<a name="example"></a>
## Example
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.
@@ -70,6 +78,6 @@ jobs:
- name: Self-hosted Renovate
uses: renovatebot/github-action@v1.0.0
with:
configurationFile: example/renovate-config.js
configurationFile: example/config.js
token: ${{ secrets.RENOVATE_TOKEN }}
```
+729 -790
View File
File diff suppressed because it is too large. Load diff
-29
View File
@@ -1,29 +0,0 @@
{
"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
}
]
}
+307 -170
View File
@@ -1,6 +1,6 @@
{
"name": "github-action",
"version": "21.12.3",
"version": "19.230.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -299,6 +299,15 @@
"rimraf": "^2.5.2"
}
},
"@samverschueren/stream-to-observable": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz",
"integrity": "sha512-MI4Xx6LHs4Webyvi6EbspgyAb4D2Q2VtnCQ1blOJcoLS6mVa8lNN2rkIy1CVxfTUpoyIbCTkXES1rLXztFD1lg==",
"dev": true,
"requires": {
"any-observable": "^0.3.0"
}
},
"@types/color-name": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",
@@ -318,9 +327,9 @@
"dev": true
},
"@types/node": {
"version": "13.13.12",
"resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.12.tgz",
"integrity": "sha512-zWz/8NEPxoXNT9YyF2osqyA9WjssZukYpgI4UYZpOjcyqwIUqWGkcCionaEb9Ki+FULyPyvNFpg/329Kd2/pbw==",
"version": "13.13.4",
"resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.4.tgz",
"integrity": "sha512-x26ur3dSXgv5AwKS0lNfbjpCakGIduWU1DU91Zz58ONRWrIKGunmZBNv4P7N+e27sJkiGDsw/3fT4AtsqQBrBA==",
"dev": true
},
"@types/parse-json": {
@@ -330,25 +339,25 @@
"dev": true
},
"@typescript-eslint/eslint-plugin": {
"version": "2.34.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.34.0.tgz",
"integrity": "sha512-4zY3Z88rEE99+CNvTbXSyovv2z9PNOVffTWD2W8QF5s2prBQtwN2zadqERcrHpcR7O/+KMI3fcTAmUUhK/iQcQ==",
"version": "2.31.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.31.0.tgz",
"integrity": "sha512-iIC0Pb8qDaoit+m80Ln/aaeu9zKQdOLF4SHcGLarSeY1gurW6aU4JsOPMjKQwXlw70MvWKZQc6S2NamA8SJ/gg==",
"dev": true,
"requires": {
"@typescript-eslint/experimental-utils": "2.34.0",
"@typescript-eslint/experimental-utils": "2.31.0",
"functional-red-black-tree": "^1.0.1",
"regexpp": "^3.0.0",
"tsutils": "^3.17.1"
}
},
"@typescript-eslint/experimental-utils": {
"version": "2.34.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.34.0.tgz",
"integrity": "sha512-eS6FTkq+wuMJ+sgtuNTtcqavWXqsflWcfBnlYhg/nS4aZ1leewkXGbvBhaapn1q6qf4M71bsR1tez5JTRMuqwA==",
"version": "2.31.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.31.0.tgz",
"integrity": "sha512-MI6IWkutLYQYTQgZ48IVnRXmLR/0Q6oAyJgiOror74arUMh7EWjJkADfirZhRsUMHeLJ85U2iySDwHTSnNi9vA==",
"dev": true,
"requires": {
"@types/json-schema": "^7.0.3",
"@typescript-eslint/typescript-estree": "2.34.0",
"@typescript-eslint/typescript-estree": "2.31.0",
"eslint-scope": "^5.0.0",
"eslint-utils": "^2.0.0"
},
@@ -365,21 +374,21 @@
}
},
"@typescript-eslint/parser": {
"version": "2.34.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.34.0.tgz",
"integrity": "sha512-03ilO0ucSD0EPTw2X4PntSIRFtDPWjrVq7C3/Z3VQHRC7+13YB55rcJI3Jt+YgeHbjUdJPcPa7b23rXCBokuyA==",
"version": "2.31.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.31.0.tgz",
"integrity": "sha512-uph+w6xUOlyV2DLSC6o+fBDzZ5i7+3/TxAsH4h3eC64tlga57oMb96vVlXoMwjR/nN+xyWlsnxtbDkB46M2EPQ==",
"dev": true,
"requires": {
"@types/eslint-visitor-keys": "^1.0.0",
"@typescript-eslint/experimental-utils": "2.34.0",
"@typescript-eslint/typescript-estree": "2.34.0",
"@typescript-eslint/experimental-utils": "2.31.0",
"@typescript-eslint/typescript-estree": "2.31.0",
"eslint-visitor-keys": "^1.1.0"
}
},
"@typescript-eslint/typescript-estree": {
"version": "2.34.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.34.0.tgz",
"integrity": "sha512-OMAr+nJWKdlVM9LOqCqh3pQQPwxHAN7Du8DR6dmwCrAmxtiXQnhHJ6tBNtf+cggqfo51SG/FCwnKhXCIM7hnVg==",
"version": "2.31.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.31.0.tgz",
"integrity": "sha512-vxW149bXFXXuBrAak0eKHOzbcu9cvi6iNcJDzEtOkRwGHxJG15chiAQAwhLOsk+86p9GTr/TziYvw+H9kMaIgA==",
"dev": true,
"requires": {
"debug": "^4.1.1",
@@ -387,22 +396,22 @@
"glob": "^7.1.6",
"is-glob": "^4.0.1",
"lodash": "^4.17.15",
"semver": "^7.3.2",
"semver": "^6.3.0",
"tsutils": "^3.17.1"
},
"dependencies": {
"semver": {
"version": "7.3.2",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
"integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==",
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
"dev": true
}
}
},
"@zeit/ncc": {
"version": "0.22.3",
"resolved": "https://registry.npmjs.org/@zeit/ncc/-/ncc-0.22.3.tgz",
"integrity": "sha512-jnCLpLXWuw/PAiJiVbLjA8WBC0IJQbFeUwF4I9M+23MvIxTxk5pD4Q8byQBSPmHQjz5aBoA7AKAElQxMpjrCLQ==",
"version": "0.22.1",
"resolved": "https://registry.npmjs.org/@zeit/ncc/-/ncc-0.22.1.tgz",
"integrity": "sha512-Qq3bMuonkcnV/96jhy9SQYdh39NXHxNMJ1O31ZFzWG9n52fR2DLtgrNzhj/ahlEjnBziMLGVWDbaS9sf03/fEw==",
"dev": true
},
"JSONStream": {
@@ -493,10 +502,10 @@
"color-convert": "^1.9.0"
}
},
"arg": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
"integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
"any-observable": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/any-observable/-/any-observable-0.3.0.tgz",
"integrity": "sha512-/FQM1EDkTsf63Ub2C6O7GuYFDsSXUwsaZDurV0np41ocwq0jthUAYCmhBX9f+KwlaCgIuWyr/4WlUQUBfKfZog==",
"dev": true
},
"argparse": {
@@ -652,6 +661,27 @@
"supports-color": "^5.3.0"
}
},
"chalk-cli": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/chalk-cli/-/chalk-cli-4.1.0.tgz",
"integrity": "sha512-Nsi7JmzX6R8NnUHJGgbLw53je9PpMG3OHYPlyYTY4KcZNFCyOOXXCjd0EH99mwH8ZCnyAU573uWaOiPTT3gJpg==",
"dev": true,
"requires": {
"ansi-styles": "^3.1.0",
"chalk": "^2.0.0",
"dot-prop": "^3.0.0",
"get-stdin": "^6.0.0",
"meow": "^5.0.0"
},
"dependencies": {
"get-stdin": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz",
"integrity": "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==",
"dev": true
}
}
},
"chardet": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz",
@@ -780,6 +810,12 @@
}
}
},
"clone": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",
"integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=",
"dev": true
},
"color-convert": {
"version": "1.9.3",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
@@ -1450,6 +1486,15 @@
"integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=",
"dev": true
},
"defaults": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz",
"integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=",
"dev": true,
"requires": {
"clone": "^1.0.2"
}
},
"define-properties": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
@@ -1471,12 +1516,6 @@
"integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==",
"dev": true
},
"diff": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
"integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
"dev": true
},
"doctrine": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
@@ -1550,6 +1589,12 @@
}
}
},
"elegant-spinner": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/elegant-spinner/-/elegant-spinner-2.0.0.tgz",
"integrity": "sha512-5YRYHhvhYzV/FC4AiMdeSIg3jAYGq9xFvbhZMpPlJoBsfYgrw2DSCYeXfat6tYBu45PWiyRr3+flaCPPmviPaA==",
"dev": true
},
"emoji-regex": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
@@ -1700,9 +1745,9 @@
}
},
"eslint-plugin-prettier": {
"version": "3.1.4",
"resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.4.tgz",
"integrity": "sha512-jZDa8z76klRqo+TdGDTFJSavwbnWK2ZpqGKNZ+VvweMW516pDUMmQ2koXvxEE4JhzNvTv+radye/bWGBmA6jmg==",
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.3.tgz",
"integrity": "sha512-+HG5jmu/dN3ZV3T6eCD7a4BlAySdN7mLIbJYo0z1cFQuI+r2DiTJEFeF68ots93PsnrMxbzIZ2S/ieX+mkrBeQ==",
"dev": true,
"requires": {
"prettier-linter-helpers": "^1.0.0"
@@ -1781,9 +1826,9 @@
"dev": true
},
"execa": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/execa/-/execa-4.0.2.tgz",
"integrity": "sha512-QI2zLa6CjGWdiQsmSkZoGtDx2N+cQIGb3yNolGTdjSQzydzLgYYf8LRuagp7S7fPimjcrzUDSUFd/MgzELMi4Q==",
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/execa/-/execa-4.0.0.tgz",
"integrity": "sha512-JbDUxwV3BoT5ZVXQrSVbAiaXhXUkIwvbhPIwZ0N13kX+5yCzOhUNdocxB/UQRuYOHRYYwAxKYwJYc0T4D12pDA==",
"dev": true,
"requires": {
"cross-spawn": "^7.0.0",
@@ -1798,9 +1843,9 @@
},
"dependencies": {
"cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
"integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
"version": "7.0.2",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.2.tgz",
"integrity": "sha512-PD6G8QG3S4FK/XCGFbEQrDqO2AnMMsy0meR7lerlIOHAAbkuavGU/pOqprrlvfTNjvowivTeBsjebAL0NSoMxw==",
"dev": true,
"requires": {
"path-key": "^3.1.0",
@@ -2734,21 +2779,19 @@
"dev": true
},
"lint-staged": {
"version": "10.2.11",
"resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-10.2.11.tgz",
"integrity": "sha512-LRRrSogzbixYaZItE2APaS4l2eJMjjf5MbclRZpLJtcQJShcvUzKXsNeZgsLIZ0H0+fg2tL4B59fU9wHIHtFIA==",
"version": "10.2.2",
"resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-10.2.2.tgz",
"integrity": "sha512-78kNqNdDeKrnqWsexAmkOU3Z5wi+1CsQmUmfCuYgMTE8E4rAIX8RHW7xgxwAZ+LAayb7Cca4uYX4P3LlevzjVg==",
"dev": true,
"requires": {
"chalk": "^4.0.0",
"cli-truncate": "2.1.0",
"commander": "^5.1.0",
"commander": "^5.0.0",
"cosmiconfig": "^6.0.0",
"debug": "^4.1.1",
"dedent": "^0.7.0",
"enquirer": "^2.3.5",
"execa": "^4.0.1",
"listr2": "^2.1.0",
"log-symbols": "^4.0.0",
"execa": "^4.0.0",
"listr2": "1.3.8",
"log-symbols": "^3.0.0",
"micromatch": "^4.0.2",
"normalize-path": "^3.0.0",
"please-upgrade-node": "^3.2.0",
@@ -2767,9 +2810,9 @@
}
},
"chalk": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.0.0.tgz",
"integrity": "sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A==",
"dev": true,
"requires": {
"ansi-styles": "^4.1.0",
@@ -2846,19 +2889,25 @@
}
},
"listr2": {
"version": "2.1.8",
"resolved": "https://registry.npmjs.org/listr2/-/listr2-2.1.8.tgz",
"integrity": "sha512-Op+hheiChfAphkJ5qUxZtHgyjlX9iNnAeFS/S134xw7mVSg0YVrQo1IY4/K+ElY6XgOPg2Ij4z07urUXR+YEew==",
"version": "1.3.8",
"resolved": "https://registry.npmjs.org/listr2/-/listr2-1.3.8.tgz",
"integrity": "sha512-iRDRVTgSDz44tBeBBg/35TQz4W+EZBWsDUq7hPpqeUHm7yLPNll0rkwW3lIX9cPAK7l+x95mGWLpxjqxftNfZA==",
"dev": true,
"requires": {
"chalk": "^4.0.0",
"@samverschueren/stream-to-observable": "^0.3.0",
"chalk": "^3.0.0",
"cli-cursor": "^3.1.0",
"cli-truncate": "^2.1.0",
"elegant-spinner": "^2.0.0",
"enquirer": "^2.3.4",
"figures": "^3.2.0",
"indent-string": "^4.0.0",
"log-update": "^4.0.0",
"p-map": "^4.0.0",
"rxjs": "^6.5.5",
"through": "^2.3.8"
"pad": "^3.2.0",
"rxjs": "^6.3.3",
"through": "^2.3.8",
"uuid": "^7.0.2"
},
"dependencies": {
"ansi-styles": {
@@ -2872,9 +2921,9 @@
}
},
"chalk": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
"dev": true,
"requires": {
"ansi-styles": "^4.1.0",
@@ -2917,15 +2966,6 @@
"integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
"dev": true
},
"rxjs": {
"version": "6.5.5",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.5.tgz",
"integrity": "sha512-WfQI+1gohdf0Dai/Bbmk5L5ItH5tYqm3ki2c5GdWhKjalzjg93N3avFjVStyZZz+A2Em+ZxKH5bNghw9UeylGQ==",
"dev": true,
"requires": {
"tslib": "^1.9.0"
}
},
"supports-color": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
@@ -2997,64 +3037,12 @@
}
},
"log-symbols": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz",
"integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==",
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz",
"integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==",
"dev": true,
"requires": {
"chalk": "^4.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
"dev": true,
"requires": {
"@types/color-name": "^1.1.1",
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
"dev": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true
},
"supports-color": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
"integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
"dev": true,
"requires": {
"has-flag": "^4.0.0"
}
}
"chalk": "^2.4.2"
}
},
"log-update": {
@@ -3123,12 +3111,6 @@
"signal-exit": "^3.0.0"
}
},
"make-error": {
"version": "1.3.6",
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
"dev": true
},
"map-obj": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz",
@@ -3252,6 +3234,166 @@
"integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==",
"dev": true
},
"next-standard-version": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/next-standard-version/-/next-standard-version-2.1.2.tgz",
"integrity": "sha512-jvJwcBBdTUGJbosdoFMCwup4F1aQYum9Hcgqymc7wThGmO0ngaQi2gycltnL3DYbvwislPzEXZms8jo2q0W1Fg==",
"dev": true,
"requires": {
"semver": "7.3.2",
"standard-version": "7.1.0",
"strip-ansi": "6.0.0",
"yargs": "15.3.1"
},
"dependencies": {
"ansi-styles": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
"dev": true,
"requires": {
"@types/color-name": "^1.1.1",
"color-convert": "^2.0.1"
}
},
"camelcase": {
"version": "5.3.1",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
"integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
"dev": true
},
"cliui": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz",
"integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==",
"dev": true,
"requires": {
"string-width": "^4.2.0",
"strip-ansi": "^6.0.0",
"wrap-ansi": "^6.2.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true
},
"find-up": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
"integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
"dev": true,
"requires": {
"locate-path": "^5.0.0",
"path-exists": "^4.0.0"
}
},
"locate-path": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
"integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
"dev": true,
"requires": {
"p-locate": "^4.1.0"
}
},
"p-limit": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
"integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
"dev": true,
"requires": {
"p-try": "^2.0.0"
}
},
"p-locate": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
"integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
"dev": true,
"requires": {
"p-limit": "^2.2.0"
}
},
"p-try": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
"integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
"dev": true
},
"path-exists": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
"integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
"dev": true
},
"semver": {
"version": "7.3.2",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
"integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==",
"dev": true
},
"strip-ansi": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
"integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
"dev": true,
"requires": {
"ansi-regex": "^5.0.0"
}
},
"wrap-ansi": {
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
"integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
"dev": true,
"requires": {
"ansi-styles": "^4.0.0",
"string-width": "^4.1.0",
"strip-ansi": "^6.0.0"
}
},
"yargs": {
"version": "15.3.1",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-15.3.1.tgz",
"integrity": "sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA==",
"dev": true,
"requires": {
"cliui": "^6.0.0",
"decamelize": "^1.2.0",
"find-up": "^4.1.0",
"get-caller-file": "^2.0.1",
"require-directory": "^2.1.1",
"require-main-filename": "^2.0.0",
"set-blocking": "^2.0.0",
"string-width": "^4.2.0",
"which-module": "^2.0.0",
"y18n": "^4.0.0",
"yargs-parser": "^18.1.1"
}
},
"yargs-parser": {
"version": "18.1.2",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.2.tgz",
"integrity": "sha512-hlIPNR3IzC1YuL1c2UwwDKpXlNFBqD1Fswwh1khz5+d8Cq/8yc/Mn0i+rQXduu8hcrFKvO7Eryk+09NecTQAAQ==",
"dev": true,
"requires": {
"camelcase": "^5.0.0",
"decamelize": "^1.2.0"
}
}
}
},
"nice-try": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
@@ -3447,6 +3589,15 @@
"integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=",
"dev": true
},
"pad": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/pad/-/pad-3.2.0.tgz",
"integrity": "sha512-2u0TrjcGbOjBTJpyewEl4hBO3OeX5wWue7eIFPzQTg6wFSvoaHcBTTUY5m+n0hd04gmTCPuY0kCpVIVuw5etwg==",
"dev": true,
"requires": {
"wcwidth": "^1.0.1"
}
},
"parent-module": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
@@ -3902,16 +4053,6 @@
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
"dev": true
},
"source-map-support": {
"version": "0.5.19",
"resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz",
"integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==",
"dev": true,
"requires": {
"buffer-from": "^1.0.0",
"source-map": "^0.6.0"
}
},
"spawn-command": {
"version": "0.0.2-1",
"resolved": "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2-1.tgz",
@@ -4311,19 +4452,6 @@
"integrity": "sha1-n5up2e+odkw4dpi8v+sshI8RrbM=",
"dev": true
},
"ts-node": {
"version": "8.10.2",
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz",
"integrity": "sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA==",
"dev": true,
"requires": {
"arg": "^4.1.0",
"diff": "^4.0.1",
"make-error": "^1.1.1",
"source-map-support": "^0.5.17",
"yn": "3.1.1"
}
},
"tslib": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz",
@@ -4361,9 +4489,9 @@
"dev": true
},
"typescript": {
"version": "3.9.5",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.5.tgz",
"integrity": "sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ==",
"version": "3.8.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz",
"integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==",
"dev": true
},
"uglify-js": {
@@ -4392,6 +4520,12 @@
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
"dev": true
},
"uuid": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz",
"integrity": "sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg==",
"dev": true
},
"v8-compile-cache": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz",
@@ -4445,6 +4579,15 @@
"integrity": "sha512-eY9jmGoEnVf8VE8xr5znSah7Qt1P/xsCdErz+g8HYZtJ7bZqKH5E3d+6oVNm1AC/c6IHUDokbmVXKOi4qPAC9A==",
"dev": true
},
"wcwidth": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",
"integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=",
"dev": true,
"requires": {
"defaults": "^1.0.3"
}
},
"which": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
@@ -4711,12 +4854,6 @@
"requires": {
"camelcase": "^4.1.0"
}
},
"yn": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
"integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
"dev": true
}
}
}
+16 -16
View File
@@ -1,24 +1,23 @@
{
"name": "github-action",
"version": "21.12.3",
"version": "19.230.0",
"description": "GitHub Action to run Renovate self-hosted.",
"private": true,
"main": "src/index.ts",
"main": "dist/index.js",
"scripts": {
"build:dist": "cd src && ncc build ./index.ts -o ../dist",
"build": "cd src && ncc build ./index.ts -o ../dist",
"format": "prettier --write \"**/*.{js,jsx,vue,ts,css,less,scss,html,htm,json,md,markdown,yml,yaml}\"",
"format:file": "prettier --write",
"git:dist": "git add -f dist",
"lint": "concurrently npm:lint-es",
"lint:fix": "concurrently npm:lint-es:fix",
"lint-es": "eslint --ext .ts,.tsx,.js,.jsx,.json .",
"lint-es:file": "eslint --ext .ts,.tsx,.js,.jsx,.json",
"lint-es:fix": "eslint --ext .ts,.tsx,.js,.jsx,.json --fix .",
"lint-es:file:fix": "eslint --ext .ts,.tsx,.js,.jsx,.json --fix",
"release:version": "node_modules/.bin/ts-node src/get-version",
"release:commit": "git add --force dist",
"release:standard-version": "standard-version --release-as",
"release": "run-s build release:commit \"release:standard-version -- {1}\" --",
"build": "ncc build -o dist",
"start": "run-s build && node dist"
"start": "run-s build:dist && node dist",
"version": "run-s build:* git:*"
},
"repository": {
"type": "git",
@@ -37,21 +36,22 @@
"devDependencies": {
"@commitlint/cli": "8.3.5",
"@commitlint/config-conventional": "8.3.4",
"@types/node": "13.13.12",
"@typescript-eslint/eslint-plugin": "2.34.0",
"@typescript-eslint/parser": "2.34.0",
"@zeit/ncc": "0.22.3",
"@types/node": "13.13.4",
"@typescript-eslint/eslint-plugin": "2.31.0",
"@typescript-eslint/parser": "2.31.0",
"@zeit/ncc": "0.22.1",
"chalk-cli": "4.1.0",
"concurrently": "5.2.0",
"eslint": "6.8.0",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-json": "2.1.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-prettier": "3.1.3",
"husky": "4.2.5",
"lint-staged": "10.2.11",
"lint-staged": "10.2.2",
"next-standard-version": "2.1.2",
"npm-run-all": "4.1.5",
"prettier": "2.0.5",
"standard-version": "7.1.0",
"ts-node": "8.10.2",
"typescript": "3.9.5"
"typescript": "3.8.3"
}
}
+2 -3
View File
@@ -1,15 +1,14 @@
class Docker {
readonly repository = 'renovate/renovate';
// renovate: datasource=docker depName=renovate/renovate versioning=docker
readonly tag = '21.12.3-slim';
readonly tagSuffix = '-slim';
readonly tag = '19.230.0';
image(): string {
return `${this.repository}:${this.tag}`;
}
version(): string {
return this.tag.replace(this.tagSuffix, '');
return this.tag;
}
}
-5
View File
@@ -1,5 +0,0 @@
import * as core from '@actions/core';
import Docker from './docker';
const docker = new Docker();
core.setOutput('version', docker.version());
-35
View File
@@ -6,7 +6,6 @@ import path from 'path';
class Renovate {
private configFileEnv = 'RENOVATE_CONFIG_FILE';
private tokenEnv = 'RENOVATE_TOKEN';
private dockerGroupName = 'docker';
private configFileMountDir = '/github-action';
private configFile: string;
@@ -21,16 +20,11 @@ class Renovate {
}
async runDockerContainer(): Promise<void> {
const renovateDockerUser = 'ubuntu';
const githubActionsDockerGroupId = this.getDockerGroupId();
const commandArguments = [
'--rm',
`--env ${this.configFileEnv}=${this.configFileMountPath()}`,
`--env ${this.tokenEnv}=${this.token}`,
`--volume ${this.configFile}:${this.configFileMountPath()}`,
`--volume /var/run/docker.sock:/var/run/docker.sock`,
`--volume /tmp:/tmp`,
`--user ${renovateDockerUser}:${githubActionsDockerGroupId}`,
this.docker.image(),
];
const command = `docker run ${commandArguments.join(' ')}`;
@@ -41,35 +35,6 @@ class Renovate {
}
}
/**
* Fetch the host docker group of the GitHub Action runner.
*
* The Renovate container needs access to this group in order to have the
* required permissions on the Docker socket.
*/
private getDockerGroupId(): string {
const groupFile = '/etc/group';
const groups = fs.readFileSync(groupFile, {
encoding: 'utf-8',
});
/**
* The group file has `groupname:group-password:GID:username-list` as
* structure and we're interested in the `GID` (the group ID).
*
* Source: https://www.thegeekdiary.com/etcgroup-file-explained/
*/
const re = new RegExp(`^${this.dockerGroupName}:x:([1-9][0-9]*):`, 'm');
const match = re.exec(groups);
if (!match || match.length < 2) {
throw new Error(
`Could not find group '${this.dockerGroupName}' in ${groupFile}`
);
}
return match[1];
}
private validateArguments(): void {
if (!fs.existsSync(this.configFile)) {
throw new Error(