mirror of
https://github.com/renovatebot/github-action.git
synced 2026-02-03 18:58:09 +00:00
Compare commits
52 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4524c32275 | ||
|
|
1e4f4a830c | ||
|
|
6bf50f544a | ||
|
|
018d1e4297 | ||
|
|
fe54aec858 | ||
|
|
dc3429fbc9 | ||
|
|
4c73fa7f5e | ||
|
|
b6d94b7279 | ||
|
|
b9249f32b5 | ||
|
|
c8c35d44dc | ||
|
|
2fec0324c9 | ||
|
|
9f55a79309 | ||
|
|
c0ab525a8c | ||
|
|
d361423d7c | ||
|
|
bce6a9f3a2 | ||
|
|
4d7de5784c | ||
|
|
6ba4a5c49b | ||
|
|
8a6192ff3a | ||
|
|
ae99b3785a | ||
|
|
d724dd314f | ||
|
|
29e7d615e0 | ||
|
|
e098430c9c | ||
|
|
df519dcd60 | ||
|
|
ffd1bc72a6 | ||
|
|
86803785c4 | ||
|
|
19b5bd8e8d | ||
|
|
a07086ad34 | ||
|
|
f391c83282 | ||
|
|
969380c2b4 | ||
|
|
d2b9da6597 | ||
|
|
dffa4d470d | ||
|
|
569b92826f | ||
|
|
4dfbc50e4c | ||
|
|
253db8a282 | ||
|
|
5aaf05075d | ||
|
|
416d47fe42 | ||
|
|
9332c36063 | ||
|
|
5b01b3588f | ||
|
|
21d8fc497e | ||
|
|
30bf1bf6d6 | ||
|
|
5075ddc5f2 | ||
|
|
e9974c0c75 | ||
|
|
68f0c4cd66 | ||
|
|
4990c2463a | ||
|
|
a058a2fe1e | ||
|
|
6eb6ef2c88 | ||
|
|
d79811201e | ||
|
|
b74d2be509 | ||
|
|
df65844243 | ||
|
|
066c0b536a | ||
|
|
7996fff47b | ||
|
|
c0fa679657 |
12 changed files with 305 additions and 453 deletions
4
.github/actions/setup-node/action.yml
vendored
4
.github/actions/setup-node/action.yml
vendored
|
|
@ -18,7 +18,7 @@ runs:
|
|||
}}' >> "$GITHUB_ENV"
|
||||
|
||||
- name: ♻️ Restore `node_modules`
|
||||
uses: actions/cache/restore@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
|
||||
uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
|
||||
id: node-modules-restore
|
||||
with:
|
||||
path: node_modules
|
||||
|
|
@ -53,7 +53,7 @@ runs:
|
|||
|
||||
- name: ♻️ Write `node_modules` cache
|
||||
if: inputs.save-cache == 'true' && env.CACHE_HIT != 'true'
|
||||
uses: actions/cache/save@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
|
||||
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ env.CACHE_KEY }}
|
||||
|
|
|
|||
22
.github/renovate.json
vendored
22
.github/renovate.json
vendored
|
|
@ -2,18 +2,6 @@
|
|||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["github>renovatebot/.github", ":pinDependencies"],
|
||||
"packageRules": [
|
||||
{
|
||||
"description": "Update references in Markdown files weekly",
|
||||
"matchFileNames": ["**/*.md"],
|
||||
"extends": ["schedule:weekly"],
|
||||
"automerge": true,
|
||||
"minimumReleaseAge": null,
|
||||
"separateMajorMinor": false,
|
||||
"commitMessageTopic": "references to {{{depName}}}",
|
||||
"semanticCommitType": "docs",
|
||||
"semanticCommitScope": null,
|
||||
"additionalBranchPrefix": "docs-"
|
||||
},
|
||||
{
|
||||
"description": "Use build semantic type for some deps",
|
||||
"matchPackageNames": ["@vercel/ncc", "typescript"],
|
||||
|
|
@ -40,21 +28,11 @@
|
|||
{
|
||||
"description": "Don't pin renovate updates",
|
||||
"matchPackageNames": ["ghcr.io/renovatebot/renovate"],
|
||||
"matchFileNames": [
|
||||
"action.yml",
|
||||
"src/docker.ts",
|
||||
".github/workflows/build.yml"
|
||||
],
|
||||
"pinDigests": false
|
||||
},
|
||||
{
|
||||
"description": "Use feat! semantic type for renovate major",
|
||||
"matchPackageNames": ["ghcr.io/renovatebot/renovate"],
|
||||
"matchFileNames": [
|
||||
"action.yml",
|
||||
"src/docker.ts",
|
||||
".github/workflows/build.yml"
|
||||
],
|
||||
"matchUpdateTypes": ["major"],
|
||||
"commitMessagePrefix": "feat(deps)!:",
|
||||
"additionalBranchPrefix": "renovate-major"
|
||||
|
|
|
|||
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -10,7 +10,7 @@ concurrency:
|
|||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
RENOVATE_VERSION: 42.92.4 # renovate: datasource=docker depName=renovate packageName=ghcr.io/renovatebot/renovate
|
||||
RENOVATE_VERSION: 43.2.4 # renovate: datasource=docker depName=ghcr.io/renovatebot/renovate
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
|
|
@ -117,7 +117,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
container:
|
||||
image: ghcr.io/renovatebot/renovate:42.92.4@sha256:1c6d7458b8cf195926ba82fd2b3b3c07c0c580d2fa0edf54a19db9ff0c43c362
|
||||
image: ghcr.io/renovatebot/renovate:43.2.4@sha256:fa1302f469465ae1178e06aea60e125d9b47f1b45a6eb33d9c7382f351beeed4
|
||||
# github hosted runners are running as `1001:127` (ubuntu:docker)
|
||||
options: -u 1001:0 --group-add 1000 --group-add 12021 --group-add 127
|
||||
|
||||
|
|
|
|||
18
.github/workflows/pr-auto.yml
vendored
Normal file
18
.github/workflows/pr-auto.yml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
name: auto-pr
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
|
||||
jobs:
|
||||
review:
|
||||
if: github.event.action == 'opened' && !endsWith(github.event.pull_request.user.login, '[bot]')
|
||||
runs-on: ubuntu-24.04
|
||||
permissions:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: hkusu/review-assign-action@5bee595fdb9765d4a0bd35724b6302fa15569158 # v1.4.0
|
||||
with:
|
||||
reviewers: ${{ vars.REVIEWERS }}
|
||||
max-num-of-reviewers: 2
|
||||
34
README.md
34
README.md
|
|
@ -100,7 +100,7 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.2
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.5
|
||||
uses: renovatebot/github-action@v46.0.1
|
||||
with:
|
||||
docker-cmd-file: .github/renovate-entrypoint.sh
|
||||
docker-user: root
|
||||
|
|
@ -143,7 +143,7 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.2
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.5
|
||||
uses: renovatebot/github-action@v46.0.1
|
||||
with:
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
docker-volumes: |
|
||||
|
|
@ -194,7 +194,7 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.2
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.5
|
||||
uses: renovatebot/github-action@v46.0.1
|
||||
with:
|
||||
renovate-image: myproxyhub.domain.com/renovate/renovate
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
|
@ -211,7 +211,7 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.2
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.5
|
||||
uses: renovatebot/github-action@v46.0.1
|
||||
with:
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
|
|
@ -222,7 +222,7 @@ The Renovate version to use.
|
|||
If omitted the action will use the [`default version`](./action.yml#L28) Docker tag.
|
||||
Check [the available tags on Docker Hub](https://hub.docker.com/r/renovate/renovate/tags).
|
||||
|
||||
This sample will use `ghcr.io/renovatebot/renovate:42.92.4` image.
|
||||
This sample will use `ghcr.io/renovatebot/renovate:43.2.4` image.
|
||||
|
||||
```yml
|
||||
....
|
||||
|
|
@ -233,9 +233,9 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.2
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.5
|
||||
uses: renovatebot/github-action@v46.0.1
|
||||
with:
|
||||
renovate-version: 42.92.4
|
||||
renovate-version: 43.2.4
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
|
||||
|
|
@ -250,7 +250,7 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.2
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.5
|
||||
uses: renovatebot/github-action@v46.0.1
|
||||
with:
|
||||
renovate-version: full
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
|
@ -285,7 +285,7 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.2
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.5
|
||||
uses: renovatebot/github-action@v46.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
|
@ -298,7 +298,7 @@ If you want to use the Renovate Action on a GitHub Enterprise instance you have
|
|||
```yml
|
||||
....
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.5
|
||||
uses: renovatebot/github-action@v46.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
|
@ -345,7 +345,7 @@ jobs:
|
|||
uses: actions/checkout@v6.0.2
|
||||
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.5
|
||||
uses: renovatebot/github-action@v46.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: '${{ steps.get_token.outputs.token }}'
|
||||
|
|
@ -360,7 +360,7 @@ For example:
|
|||
|
||||
```yaml
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.5
|
||||
uses: renovatebot/github-action@v46.0.1
|
||||
with:
|
||||
token: '${{ steps.get_token.outputs.token }}'
|
||||
env:
|
||||
|
|
@ -384,7 +384,7 @@ For example if you wish to pass through some credentials for a [host rule](https
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.2
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.5
|
||||
uses: renovatebot/github-action@v46.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
|
@ -421,7 +421,7 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.2
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.5
|
||||
uses: renovatebot/github-action@v46.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
|
@ -512,11 +512,11 @@ jobs:
|
|||
sudo chown -R 12021:0 /tmp/renovate/
|
||||
ls -R $cache_dir
|
||||
|
||||
- uses: renovatebot/github-action@v44.2.5
|
||||
- uses: renovatebot/github-action@v46.0.1
|
||||
with:
|
||||
configurationFile: renovate.json5
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
renovate-version: 42.92.4
|
||||
renovate-version: 43.2.4
|
||||
env:
|
||||
# This enables the cache -- if this is set, it's not necessary to add it to renovate.json.
|
||||
RENOVATE_REPOSITORY_CACHE: ${{ github.event.inputs.repoCache || 'enabled' }}
|
||||
|
|
@ -550,7 +550,7 @@ To enable debug logging, add the environment variable `LOG_LEVEL: 'debug'` to th
|
|||
|
||||
```yml
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.5
|
||||
uses: renovatebot/github-action@v46.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ inputs:
|
|||
description: |
|
||||
Renovate version to use.
|
||||
required: false
|
||||
default: '42' # renovate
|
||||
default: '43' # renovate
|
||||
renovate-image:
|
||||
description: |
|
||||
Renovate docker image name.
|
||||
|
|
@ -63,5 +63,5 @@ inputs:
|
|||
required: false
|
||||
|
||||
runs:
|
||||
using: node20
|
||||
using: node24
|
||||
main: dist/index.js
|
||||
|
|
|
|||
24
package.json
24
package.json
|
|
@ -20,11 +20,11 @@
|
|||
"clean": "rimraf dist/",
|
||||
"compile": "node tools/compile.js",
|
||||
"lint": "run-s lint-es prettier",
|
||||
"lint:fix": "run-s lint-es:fix prettier-fix",
|
||||
"lint-es": "eslint .",
|
||||
"lint-es:file": "eslint",
|
||||
"lint-es:file:fix": "eslint --fix",
|
||||
"lint-es:fix": "eslint --fix .",
|
||||
"lint:fix": "run-s lint-es:fix prettier-fix",
|
||||
"prepare": "husky",
|
||||
"prettier": "prettier --cache --check --ignore-unknown \"{**/*,*}.*\"",
|
||||
"prettier-fix": "prettier --cache --write --ignore-unknown \"{**/*,*}.*\"",
|
||||
|
|
@ -33,8 +33,8 @@
|
|||
"start": "run-s build && node dist"
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/core": "1.11.1",
|
||||
"@actions/exec": "1.1.1"
|
||||
"@actions/core": "3.0.0",
|
||||
"@actions/exec": "3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "20.3.1",
|
||||
|
|
@ -43,29 +43,29 @@
|
|||
"@semantic-release/git": "10.0.1",
|
||||
"@semantic-release/github": "12.0.2",
|
||||
"@semantic-release/npm": "13.1.3",
|
||||
"@tsconfig/node20": "20.1.8",
|
||||
"@tsconfig/strictest": "2.0.6",
|
||||
"@tsconfig/node24": "24.0.4",
|
||||
"@tsconfig/strictest": "2.0.8",
|
||||
"@types/eslint-config-prettier": "6.11.3",
|
||||
"@types/node": "20.19.30",
|
||||
"@types/node": "24.10.9",
|
||||
"conventional-changelog-conventionalcommits": "9.1.0",
|
||||
"esbuild": "0.27.2",
|
||||
"eslint": "9.39.2",
|
||||
"eslint-config-prettier": "10.1.8",
|
||||
"eslint-plugin-json": "4.0.1",
|
||||
"globals": "16.5.0",
|
||||
"globals": "17.2.0",
|
||||
"husky": "9.1.7",
|
||||
"lint-staged": "16.2.7",
|
||||
"npm-run-all2": "8.0.4",
|
||||
"prettier": "3.8.0",
|
||||
"prettier-plugin-packagejson": "2.5.21",
|
||||
"prettier": "3.8.1",
|
||||
"prettier-plugin-packagejson": "3.0.0",
|
||||
"rimraf": "6.1.2",
|
||||
"semantic-release": "25.0.2",
|
||||
"typescript": "5.9.3",
|
||||
"typescript-eslint": "8.53.0"
|
||||
"typescript-eslint": "8.54.0"
|
||||
},
|
||||
"packageManager": "pnpm@10.28.0",
|
||||
"packageManager": "pnpm@10.28.2",
|
||||
"engines": {
|
||||
"node": "^20.9.0 || ^22.11.0 || ^24.11.0",
|
||||
"node": ">=24.11.0",
|
||||
"pnpm": "^10.0.0"
|
||||
},
|
||||
"pnpm": {
|
||||
|
|
|
|||
637
pnpm-lock.yaml
generated
637
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -3,7 +3,7 @@ import { warning } from '@actions/core';
|
|||
|
||||
export class Docker {
|
||||
private static readonly image = 'ghcr.io/renovatebot/renovate';
|
||||
private static readonly version = '42'; // renovate
|
||||
private static readonly version = '43'; // renovate
|
||||
|
||||
private readonly dockerImage: string;
|
||||
private readonly fullTag: string;
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ await build({
|
|||
entryPoints: ['./src/index.ts'],
|
||||
bundle: true,
|
||||
platform: 'node',
|
||||
target: 'node20',
|
||||
minify: !!env['CI'],
|
||||
target: 'node24',
|
||||
minify: !!env.CI,
|
||||
tsconfig: 'tsconfig.dist.json',
|
||||
sourcemap: true,
|
||||
format: 'esm',
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"extends": [
|
||||
"@tsconfig/strictest/tsconfig.json",
|
||||
"@tsconfig/node20/tsconfig.json"
|
||||
"@tsconfig/node24/tsconfig.json"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
{
|
||||
"extends": [
|
||||
"@tsconfig/strictest/tsconfig.json",
|
||||
"@tsconfig/node20/tsconfig.json"
|
||||
"@tsconfig/node24/tsconfig.json"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"outDir": "dist",
|
||||
"module": "ESNext",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue