mirror of
https://github.com/renovatebot/github-action.git
synced 2026-12-06 03:42:57 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ac9d13fb2 |
No files matched your search
@@ -3,8 +3,7 @@
|
||||
"config:base",
|
||||
":rebaseStalePrs",
|
||||
":pinDependencies",
|
||||
":masterIssue",
|
||||
"docker:enableMajor"
|
||||
":masterIssue"
|
||||
],
|
||||
"prCreation": "not-pending",
|
||||
"lockFileMaintenance": {
|
||||
@@ -23,12 +22,11 @@
|
||||
"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,
|
||||
"masterIssueApproval": false
|
||||
"automerge": true
|
||||
}
|
||||
],
|
||||
"regexManagers": [
|
||||
|
||||
@@ -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'
|
||||
@@ -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
@@ -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
-227
@@ -2,253 +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.33.2](https://github.com/renovatebot/github-action/compare/v21.33.1...v21.33.2) (2020-07-19)
|
||||
|
||||
### [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.33.2 ([#152](https://github.com/renovatebot/github-action/issues/152)) ([48020d5](https://github.com/renovatebot/github-action/commit/48020d596cc19e1e3249c27c645072b83bee6abc))
|
||||
|
||||
### [21.33.1](https://github.com/renovatebot/github-action/compare/v21.32.3...v21.33.1) (2020-07-18)
|
||||
- **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.33.1 ([#150](https://github.com/renovatebot/github-action/issues/150)) ([9a1bffc](https://github.com/renovatebot/github-action/commit/9a1bffc093bc6f34652ff5ad85bf47edfd6aa8d6))
|
||||
|
||||
### [21.32.3](https://github.com/renovatebot/github-action/compare/v21.32.2...v21.32.3) (2020-07-18)
|
||||
- **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.32.3 ([#149](https://github.com/renovatebot/github-action/issues/149)) ([080f12d](https://github.com/renovatebot/github-action/commit/080f12dd024cebcad1a9de656067ea149f7c717a))
|
||||
|
||||
### [21.32.2](https://github.com/renovatebot/github-action/compare/v21.32.0...v21.32.2) (2020-07-17)
|
||||
- **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.32.2 ([#148](https://github.com/renovatebot/github-action/issues/148)) ([9573240](https://github.com/renovatebot/github-action/commit/9573240a864054090f6e66ef098d1a4c36d62b99))
|
||||
- **deps:** update renovate/renovate docker tag to v19.176.3 ([9957aeb](https://github.com/vidavidorra/github-action-renovate/commit/9957aeba72b45e1fcc9a87b8532a52ad2464a526))
|
||||
|
||||
## [21.32.0](https://github.com/renovatebot/github-action/compare/v21.31.2...v21.32.0) (2020-07-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update renovate/renovate docker tag to v21.32.0 ([#147](https://github.com/renovatebot/github-action/issues/147)) ([a7664fa](https://github.com/renovatebot/github-action/commit/a7664fa20729eb3af00d13c67a02e27a73810456))
|
||||
|
||||
### [21.31.2](https://github.com/renovatebot/github-action/compare/v21.30.0...v21.31.2) (2020-07-16)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update renovate/renovate docker tag to v21.31.2 ([#145](https://github.com/renovatebot/github-action/issues/145)) ([9f83764](https://github.com/renovatebot/github-action/commit/9f837640e2dead818dacd3aa7c92bf0bd83b11bd))
|
||||
|
||||
## [21.30.0](https://github.com/renovatebot/github-action/compare/v21.29.3...v21.30.0) (2020-07-15)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update renovate/renovate docker tag to v21.30.0 ([#143](https://github.com/renovatebot/github-action/issues/143)) ([0d217a6](https://github.com/renovatebot/github-action/commit/0d217a6b1447a34d51af41d9190119c1adacaad9))
|
||||
|
||||
### [21.29.3](https://github.com/renovatebot/github-action/compare/v21.29.2...v21.29.3) (2020-07-14)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update renovate/renovate docker tag to v21.29.3 ([#135](https://github.com/renovatebot/github-action/issues/135)) ([60697a4](https://github.com/renovatebot/github-action/commit/60697a4a6cf0b9fe5e88377b976fa1530674873e))
|
||||
|
||||
### [21.29.2](https://github.com/renovatebot/github-action/compare/v21.12.7...v21.29.2) (2020-07-14)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update renovate/renovate docker tag to v21.29.2 ([#131](https://github.com/renovatebot/github-action/issues/131)) ([5b4be46](https://github.com/renovatebot/github-action/commit/5b4be46dfd776e0fd68f374977d7fbc813b8aad5))
|
||||
|
||||
### [21.12.7](https://github.com/renovatebot/github-action/compare/v21.12.6...v21.12.7) (2020-06-19)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update renovate/renovate docker tag to v21.12.7 ([#130](https://github.com/renovatebot/github-action/issues/130)) ([b374259](https://github.com/renovatebot/github-action/commit/b374259332333c7f7119be3c89b1d36d764e093c))
|
||||
|
||||
### [21.12.6](https://github.com/renovatebot/github-action/compare/v21.12.4...v21.12.6) (2020-06-19)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update renovate/renovate docker tag to v21.12.6 ([#129](https://github.com/renovatebot/github-action/issues/129)) ([bcf0663](https://github.com/renovatebot/github-action/commit/bcf066390d5d3ec6745b153d2aaa83565d11695c))
|
||||
|
||||
### [21.12.4](https://github.com/renovatebot/github-action/compare/v21.12.3...v21.12.4) (2020-06-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **deps:** update renovate/renovate docker tag to v21.12.4 ([#128](https://github.com/renovatebot/github-action/issues/128)) ([1c81713](https://github.com/renovatebot/github-action/commit/1c81713e54c4425858ea998e50891232ddb72e4e))
|
||||
|
||||
### [21.12.3](https://github.com/renovatebot/github-action/compare/v21.12.2...v21.12.3) (2020-06-17)
|
||||
|
||||
|
||||
### 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)
|
||||
|
||||
|
||||
### 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)
|
||||
|
||||
|
||||
### 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)
|
||||
|
||||
|
||||
### 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))
|
||||
|
||||
### [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))
|
||||
@@ -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,19 +47,21 @@ 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.
|
||||
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.
|
||||
|
||||
**Remark** Update the action version to the most current, see [here](https://github.com/renovatebot/github-action/releases/latest) for latest release.
|
||||
|
||||
```yml
|
||||
name: Renovate
|
||||
on:
|
||||
@@ -70,8 +76,8 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.0.0
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v21.30.0
|
||||
uses: renovatebot/github-action@v1.0.0
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
configurationFile: example/config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
Vendored
+729
-790
File diff suppressed because it is too large.
Load diff
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
Generated
+1022
-1987
File diff suppressed because it is too large.
Load diff
+20
-20
@@ -1,24 +1,23 @@
|
||||
{
|
||||
"name": "github-action",
|
||||
"version": "21.33.2",
|
||||
"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",
|
||||
@@ -35,23 +34,24 @@
|
||||
"@actions/exec": "1.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "9.1.1",
|
||||
"@commitlint/config-conventional": "9.1.1",
|
||||
"@types/node": "13.13.14",
|
||||
"@typescript-eslint/eslint-plugin": "3.6.1",
|
||||
"@typescript-eslint/parser": "3.6.1",
|
||||
"@zeit/ncc": "0.22.3",
|
||||
"@commitlint/cli": "8.3.5",
|
||||
"@commitlint/config-conventional": "8.3.4",
|
||||
"@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": "7.5.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": "8.0.2",
|
||||
"ts-node": "8.10.2",
|
||||
"typescript": "3.9.7"
|
||||
"standard-version": "7.1.0",
|
||||
"typescript": "3.8.3"
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -1,15 +1,14 @@
|
||||
class Docker {
|
||||
readonly repository = 'renovate/renovate';
|
||||
// renovate: datasource=docker depName=renovate/renovate versioning=docker
|
||||
readonly tag = '21.33.2-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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
import * as core from '@actions/core';
|
||||
import Docker from './docker';
|
||||
|
||||
const docker = new Docker();
|
||||
core.setOutput('version', docker.version());
|
||||
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user