mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-18 09:52:35 +00:00
Compare commits
212 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eed36ceef6 | ||
|
|
7359cca382 | ||
|
|
b4fc770ace | ||
|
|
54ccfe8c99 | ||
|
|
3fb872de61 | ||
|
|
7f353c27aa | ||
|
|
548f050250 | ||
|
|
a05a7732a1 | ||
|
|
d21ed0efec | ||
|
|
efc82a710f | ||
|
|
e571d85ac0 | ||
|
|
635cf78cf0 | ||
|
|
95fbfab63b | ||
|
|
07847d1ce3 | ||
|
|
395475ba39 | ||
|
|
35e2653320 | ||
|
|
094e9c6953 | ||
|
|
dabc2a05a3 | ||
|
|
9b96e25a5a | ||
|
|
c778357a67 | ||
|
|
4728f99879 | ||
|
|
5fde7be597 | ||
|
|
f5951c521b | ||
|
|
2fb813ee7f | ||
|
|
fde0305037 | ||
|
|
47283fac74 | ||
|
|
ccbe4e599c | ||
|
|
5601672bb1 | ||
|
|
5ccdc9c834 | ||
|
|
877f1edb5a | ||
|
|
a7d997abb9 | ||
|
|
a163433138 | ||
|
|
80916137e7 | ||
|
|
27c17575a9 | ||
|
|
c3a7384543 | ||
|
|
c31dec6b59 | ||
|
|
61dcbbd7bc | ||
|
|
92e7f7b274 | ||
|
|
9c94e7fd2b | ||
|
|
f90da8d8bc | ||
|
|
1adf39f4f8 | ||
|
|
7f974c0f8a | ||
|
|
6856febbe5 | ||
|
|
8342c937a8 | ||
|
|
8380aa8941 | ||
|
|
a272caf98b | ||
|
|
80e45c233d | ||
|
|
c9c06da449 | ||
|
|
7aecb0a372 | ||
|
|
9e1daf1110 | ||
|
|
5b820c1cd9 | ||
|
|
de82540087 | ||
|
|
700b8952df | ||
|
|
817bae1f42 | ||
|
|
dc3589581a | ||
|
|
4f9787fc9d | ||
|
|
b1b6377177 | ||
|
|
e9008ac40d | ||
|
|
6378a85217 | ||
|
|
c55898597d | ||
|
|
e6368fdaca | ||
|
|
b8053ce4b8 | ||
|
|
13dbfa2450 | ||
|
|
c4a4a8e9d4 | ||
|
|
f2a3a2ab0c | ||
|
|
5528b56de9 | ||
|
|
56ac2fc403 | ||
|
|
afa2fa89b9 | ||
|
|
eff79185c2 | ||
|
|
df0b720320 | ||
|
|
ddf131ed0c | ||
|
|
82ec2836b7 | ||
|
|
e022113a52 | ||
|
|
d65800d5d4 | ||
|
|
82475db394 | ||
|
|
f7337fdf53 | ||
|
|
280b58e85e | ||
|
|
cb999b8888 | ||
|
|
a2e6f2c844 | ||
|
|
79de2597ec | ||
|
|
b6077f89cf | ||
|
|
c023f569b1 | ||
|
|
d7b2cb950e | ||
|
|
8109939667 | ||
|
|
a27b37e61c | ||
|
|
7dacb799b6 | ||
|
|
f8f972df2b | ||
|
|
c654f3ca90 | ||
|
|
39fbfa40c9 | ||
|
|
6eab2b7ef6 | ||
|
|
ad718be8b5 | ||
|
|
9a03ec1eb4 | ||
|
|
0a7b3c6d79 | ||
|
|
a014389a0a | ||
|
|
bbde94e6b6 | ||
|
|
07abe3d743 | ||
|
|
fb6e56fcfa | ||
|
|
6bbb0487e8 | ||
|
|
8d95600783 | ||
|
|
cb626814b5 | ||
|
|
2195956358 | ||
|
|
1a6e892329 | ||
|
|
931e429b22 | ||
|
|
7dbfb72a1a | ||
|
|
78247c4213 | ||
|
|
6b7c735e77 | ||
|
|
9b051ee987 | ||
|
|
a417a004cc | ||
|
|
6654dca5b4 | ||
|
|
a16152399d | ||
|
|
ff51f3bcb8 | ||
|
|
660d9701f8 | ||
|
|
501b8b8470 | ||
|
|
f662a18d03 | ||
|
|
f318c66137 | ||
|
|
fbc76b1458 | ||
|
|
6a6d9063c3 | ||
|
|
f7665b0229 | ||
|
|
dd2ea916df | ||
|
|
47fa0c7591 | ||
|
|
b933b8155b | ||
|
|
6e7dbb8abd | ||
|
|
79ec017e94 | ||
|
|
ba515daaf0 | ||
|
|
ebc94abe2c | ||
|
|
17199a93b0 | ||
|
|
72b17861a6 | ||
|
|
9ef994d828 | ||
|
|
ebd33e26be | ||
|
|
cd5302b8f4 | ||
|
|
089784b905 | ||
|
|
c9783cceda | ||
|
|
90f3ba218f | ||
|
|
62c21fde77 | ||
|
|
e08a619337 | ||
|
|
df0277db2a | ||
|
|
8a373e9176 | ||
|
|
433f522bb0 | ||
|
|
dc2e960d3e | ||
|
|
760eaead4b | ||
|
|
8962db8b2b | ||
|
|
87443295f2 | ||
|
|
6752f0f924 | ||
|
|
12ccaccd34 | ||
|
|
58fd621ea9 | ||
|
|
0745ba0b89 | ||
|
|
b4159128a2 | ||
|
|
b499602dbd | ||
|
|
f3fed1001d | ||
|
|
99d3e68c4b | ||
|
|
89d46e0431 | ||
|
|
a07e6cd314 | ||
|
|
a1252fefbf | ||
|
|
7cd0b77e52 | ||
|
|
a32bad83d9 | ||
|
|
98d5355e31 | ||
|
|
2c52ddbe86 | ||
|
|
c302cccfb5 | ||
|
|
fca6d36700 | ||
|
|
8dc1742e7a | ||
|
|
88f6828964 | ||
|
|
d485be8444 | ||
|
|
304fd0480c | ||
|
|
ba10ad3055 | ||
|
|
0c67460094 | ||
|
|
3180f03442 | ||
|
|
cddf4566f6 | ||
|
|
fc44ab4749 | ||
|
|
5f1880cb17 | ||
|
|
1fee7b4bf3 | ||
|
|
7abe8bb0c3 | ||
|
|
04d158ca88 | ||
|
|
a4ef38db78 | ||
|
|
9165c1c121 | ||
|
|
64b16b72db | ||
|
|
550593c334 | ||
|
|
00bfa3e254 | ||
|
|
fc9d3f4fd4 | ||
|
|
b2df36e129 | ||
|
|
730d1a6de6 | ||
|
|
df2e683ee3 | ||
|
|
5b1ce507ae | ||
|
|
3300545f60 | ||
|
|
879d6faa48 | ||
|
|
160b607ba8 | ||
|
|
b01dddf55f | ||
|
|
ad9b3d5544 | ||
|
|
6977a6614e | ||
|
|
871c190d08 | ||
|
|
a6d386d461 | ||
|
|
80a952aa22 | ||
|
|
03f7f69081 | ||
|
|
9ce6df16a9 | ||
|
|
6681b3f58b | ||
|
|
ddd20f28b1 | ||
|
|
d95d81f73f | ||
|
|
667e6da47a | ||
|
|
375d4df4e8 | ||
|
|
8a76521873 | ||
|
|
6641ca4c54 | ||
|
|
a154af9458 | ||
|
|
d99b1e83d5 | ||
|
|
fdb23b4b0f | ||
|
|
f7f2c9eb4d | ||
|
|
be13ca4f88 | ||
|
|
54d0959f9e | ||
|
|
783744cc6c | ||
|
|
f513cb432c | ||
|
|
a49ba8e0e0 | ||
|
|
b7e2be46ce | ||
|
|
c6bfbb6025 | ||
|
|
5aae8aa874 |
14 changed files with 715 additions and 733 deletions
6
.github/actions/setup-node/action.yml
vendored
6
.github/actions/setup-node/action.yml
vendored
|
|
@ -18,7 +18,7 @@ runs:
|
||||||
}}' >> "$GITHUB_ENV"
|
}}' >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: ♻️ Restore `node_modules`
|
- name: ♻️ Restore `node_modules`
|
||||||
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
|
||||||
id: node-modules-restore
|
id: node-modules-restore
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
|
|
@ -38,7 +38,7 @@ runs:
|
||||||
standalone: true
|
standalone: true
|
||||||
|
|
||||||
- name: ⚙️ Setup Node.js ${{ inputs.node-version }}
|
- name: ⚙️ Setup Node.js ${{ inputs.node-version }}
|
||||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
||||||
with:
|
with:
|
||||||
node-version-file: .node-version
|
node-version-file: .node-version
|
||||||
cache: ${{ env.CACHE_HIT != 'true' && 'pnpm' || '' }}
|
cache: ${{ env.CACHE_HIT != 'true' && 'pnpm' || '' }}
|
||||||
|
|
@ -53,7 +53,7 @@ runs:
|
||||||
|
|
||||||
- name: ♻️ Write `node_modules` cache
|
- name: ♻️ Write `node_modules` cache
|
||||||
if: inputs.save-cache == 'true' && env.CACHE_HIT != 'true'
|
if: inputs.save-cache == 'true' && env.CACHE_HIT != 'true'
|
||||||
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
uses: actions/cache/save@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
key: ${{ env.CACHE_KEY }}
|
key: ${{ env.CACHE_KEY }}
|
||||||
|
|
|
||||||
12
.github/renovate.json
vendored
12
.github/renovate.json
vendored
|
|
@ -40,13 +40,21 @@
|
||||||
{
|
{
|
||||||
"description": "Don't pin renovate updates",
|
"description": "Don't pin renovate updates",
|
||||||
"matchPackageNames": ["ghcr.io/renovatebot/renovate"],
|
"matchPackageNames": ["ghcr.io/renovatebot/renovate"],
|
||||||
"matchFileNames": ["action.yml", "src/docker.ts"],
|
"matchFileNames": [
|
||||||
|
"action.yml",
|
||||||
|
"src/docker.ts",
|
||||||
|
".github/workflows/build.yml"
|
||||||
|
],
|
||||||
"pinDigests": false
|
"pinDigests": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Use feat! semantic type for renovate major",
|
"description": "Use feat! semantic type for renovate major",
|
||||||
"matchPackageNames": ["ghcr.io/renovatebot/renovate"],
|
"matchPackageNames": ["ghcr.io/renovatebot/renovate"],
|
||||||
"matchFileNames": ["action.yml", "src/docker.ts"],
|
"matchFileNames": [
|
||||||
|
"action.yml",
|
||||||
|
"src/docker.ts",
|
||||||
|
".github/workflows/build.yml"
|
||||||
|
],
|
||||||
"matchUpdateTypes": ["major"],
|
"matchUpdateTypes": ["major"],
|
||||||
"commitMessagePrefix": "feat(deps)!:",
|
"commitMessagePrefix": "feat(deps)!:",
|
||||||
"additionalBranchPrefix": "renovate-major"
|
"additionalBranchPrefix": "renovate-major"
|
||||||
|
|
|
||||||
31
.github/workflows/build.yml
vendored
31
.github/workflows/build.yml
vendored
|
|
@ -10,7 +10,7 @@ concurrency:
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RENOVATE_VERSION: 41.169.1 # renovate: datasource=docker depName=renovate packageName=ghcr.io/renovatebot/renovate
|
RENOVATE_VERSION: 42.59.1 # renovate: datasource=docker depName=renovate packageName=ghcr.io/renovatebot/renovate
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
show-progress: false
|
show-progress: false
|
||||||
|
|
||||||
|
|
@ -33,7 +33,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
show-progress: false
|
show-progress: false
|
||||||
|
|
@ -51,7 +51,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
show-progress: false
|
show-progress: false
|
||||||
|
|
||||||
|
|
@ -75,7 +75,7 @@ jobs:
|
||||||
- example/renovate-config.json
|
- example/renovate-config.json
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
show-progress: false
|
show-progress: false
|
||||||
|
|
||||||
|
|
@ -113,11 +113,30 @@ jobs:
|
||||||
docker-cmd-file: example/entrypoint.sh
|
docker-cmd-file: example/entrypoint.sh
|
||||||
docker-user: root
|
docker-user: root
|
||||||
|
|
||||||
|
renovate-config-validator:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
|
container:
|
||||||
|
image: ghcr.io/renovatebot/renovate:42.60.0@sha256:9be8030a7f922f075d8e2daa1930ce5e472e313cb77818f4f7c3a4188056b032
|
||||||
|
# github hosted runners are running as `1001:127` (ubuntu:docker)
|
||||||
|
options: -u 1001:0 --group-add 1000 --group-add 12021 --group-add 127
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
|
with:
|
||||||
|
show-progress: false
|
||||||
|
|
||||||
|
- name: Validate Renovate configuration
|
||||||
|
working-directory: example
|
||||||
|
run: |
|
||||||
|
renovate-config-validator renovate-config.js renovate-config.json
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs:
|
needs:
|
||||||
- lint
|
- lint
|
||||||
- commitlint
|
- commitlint
|
||||||
- e2e
|
- e2e
|
||||||
|
- renovate-config-validator
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Git user
|
- name: Setup Git user
|
||||||
|
|
@ -129,7 +148,7 @@ jobs:
|
||||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # required for semantic release
|
fetch-depth: 0 # required for semantic release
|
||||||
ref: 'release'
|
ref: 'release'
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
20.19.5
|
24.12.0
|
||||||
|
|
|
||||||
54
README.md
54
README.md
|
|
@ -98,9 +98,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v6.0.1
|
||||||
- name: Self-hosted Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: renovatebot/github-action@v43.0.19
|
uses: renovatebot/github-action@v44.1.0
|
||||||
with:
|
with:
|
||||||
docker-cmd-file: .github/renovate-entrypoint.sh
|
docker-cmd-file: .github/renovate-entrypoint.sh
|
||||||
docker-user: root
|
docker-user: root
|
||||||
|
|
@ -141,9 +141,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v6.0.1
|
||||||
- name: Self-hosted Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: renovatebot/github-action@v43.0.19
|
uses: renovatebot/github-action@v44.1.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
docker-volumes: |
|
docker-volumes: |
|
||||||
|
|
@ -192,9 +192,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v6.0.1
|
||||||
- name: Self-hosted Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: renovatebot/github-action@v43.0.19
|
uses: renovatebot/github-action@v44.1.0
|
||||||
with:
|
with:
|
||||||
renovate-image: myproxyhub.domain.com/renovate/renovate
|
renovate-image: myproxyhub.domain.com/renovate/renovate
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
|
|
@ -209,9 +209,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v6.0.1
|
||||||
- name: Self-hosted Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: renovatebot/github-action@v43.0.19
|
uses: renovatebot/github-action@v44.1.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
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.
|
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).
|
Check [the available tags on Docker Hub](https://hub.docker.com/r/renovate/renovate/tags).
|
||||||
|
|
||||||
This sample will use `ghcr.io/renovatebot/renovate:41.169.1` image.
|
This sample will use `ghcr.io/renovatebot/renovate:42.52.8` image.
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
....
|
....
|
||||||
|
|
@ -231,11 +231,11 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v6.0.1
|
||||||
- name: Self-hosted Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: renovatebot/github-action@v43.0.19
|
uses: renovatebot/github-action@v44.1.0
|
||||||
with:
|
with:
|
||||||
renovate-version: 41.169.1
|
renovate-version: 42.52.8
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -248,9 +248,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v6.0.1
|
||||||
- name: Self-hosted Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: renovatebot/github-action@v43.0.19
|
uses: renovatebot/github-action@v44.1.0
|
||||||
with:
|
with:
|
||||||
renovate-version: full
|
renovate-version: full
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
|
|
@ -283,9 +283,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v6.0.1
|
||||||
- name: Self-hosted Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: renovatebot/github-action@v43.0.19
|
uses: renovatebot/github-action@v44.1.0
|
||||||
with:
|
with:
|
||||||
configurationFile: example/renovate-config.js
|
configurationFile: example/renovate-config.js
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
|
|
@ -298,7 +298,7 @@ If you want to use the Renovate Action on a GitHub Enterprise instance you have
|
||||||
```yml
|
```yml
|
||||||
....
|
....
|
||||||
- name: Self-hosted Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: renovatebot/github-action@v43.0.19
|
uses: renovatebot/github-action@v44.1.0
|
||||||
with:
|
with:
|
||||||
configurationFile: example/renovate-config.js
|
configurationFile: example/renovate-config.js
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
|
|
@ -342,10 +342,10 @@ jobs:
|
||||||
repositories: 'repo1,repo2'
|
repositories: 'repo1,repo2'
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v6.0.1
|
||||||
|
|
||||||
- name: Self-hosted Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: renovatebot/github-action@v43.0.19
|
uses: renovatebot/github-action@v44.1.0
|
||||||
with:
|
with:
|
||||||
configurationFile: example/renovate-config.js
|
configurationFile: example/renovate-config.js
|
||||||
token: '${{ steps.get_token.outputs.token }}'
|
token: '${{ steps.get_token.outputs.token }}'
|
||||||
|
|
@ -360,7 +360,7 @@ For example:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Self-hosted Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: renovatebot/github-action@v43.0.19
|
uses: renovatebot/github-action@v44.1.0
|
||||||
with:
|
with:
|
||||||
token: '${{ steps.get_token.outputs.token }}'
|
token: '${{ steps.get_token.outputs.token }}'
|
||||||
env:
|
env:
|
||||||
|
|
@ -382,9 +382,9 @@ For example if you wish to pass through some credentials for a [host rule](https
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v6.0.1
|
||||||
- name: Self-hosted Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: renovatebot/github-action@v43.0.19
|
uses: renovatebot/github-action@v44.1.0
|
||||||
with:
|
with:
|
||||||
configurationFile: example/renovate-config.js
|
configurationFile: example/renovate-config.js
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
|
|
@ -419,9 +419,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v6.0.1
|
||||||
- name: Self-hosted Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: renovatebot/github-action@v43.0.19
|
uses: renovatebot/github-action@v44.1.0
|
||||||
with:
|
with:
|
||||||
configurationFile: example/renovate-config.js
|
configurationFile: example/renovate-config.js
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
|
|
@ -512,11 +512,11 @@ jobs:
|
||||||
sudo chown -R 12021:0 /tmp/renovate/
|
sudo chown -R 12021:0 /tmp/renovate/
|
||||||
ls -R $cache_dir
|
ls -R $cache_dir
|
||||||
|
|
||||||
- uses: renovatebot/github-action@v43.0.19
|
- uses: renovatebot/github-action@v44.1.0
|
||||||
with:
|
with:
|
||||||
configurationFile: renovate.json5
|
configurationFile: renovate.json5
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
renovate-version: 41.169.1
|
renovate-version: 42.52.8
|
||||||
env:
|
env:
|
||||||
# This enables the cache -- if this is set, it's not necessary to add it to renovate.json.
|
# 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' }}
|
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
|
```yml
|
||||||
- name: Self-hosted Renovate
|
- name: Self-hosted Renovate
|
||||||
uses: renovatebot/github-action@v43.0.19
|
uses: renovatebot/github-action@v44.1.0
|
||||||
with:
|
with:
|
||||||
configurationFile: example/renovate-config.js
|
configurationFile: example/renovate-config.js
|
||||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ inputs:
|
||||||
description: |
|
description: |
|
||||||
Renovate version to use.
|
Renovate version to use.
|
||||||
required: false
|
required: false
|
||||||
default: '41' # renovate
|
default: '42' # renovate
|
||||||
renovate-image:
|
renovate-image:
|
||||||
description: |
|
description: |
|
||||||
Renovate docker image name.
|
Renovate docker image name.
|
||||||
|
|
|
||||||
3
example/package.json
Normal file
3
example/package.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"type": "commonjs"
|
||||||
|
}
|
||||||
|
|
@ -19,7 +19,7 @@ module.exports = {
|
||||||
'lockFileMaintenance',
|
'lockFileMaintenance',
|
||||||
],
|
],
|
||||||
dependencyDashboardApproval: false,
|
dependencyDashboardApproval: false,
|
||||||
minimumReleaseAge: '0 days',
|
minimumReleaseAge: null,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
"lockFileMaintenance"
|
"lockFileMaintenance"
|
||||||
],
|
],
|
||||||
"dependencyDashboardApproval": false,
|
"dependencyDashboardApproval": false,
|
||||||
"minimumReleaseAge": 0
|
"minimumReleaseAge": "1 day"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
40
package.json
40
package.json
|
|
@ -37,35 +37,35 @@
|
||||||
"@actions/exec": "1.1.1"
|
"@actions/exec": "1.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "19.8.1",
|
"@commitlint/cli": "20.2.0",
|
||||||
"@commitlint/config-conventional": "19.8.1",
|
"@commitlint/config-conventional": "20.2.0",
|
||||||
"@eslint/js": "9.38.0",
|
"@eslint/js": "9.39.1",
|
||||||
"@semantic-release/git": "10.0.1",
|
"@semantic-release/git": "10.0.1",
|
||||||
"@semantic-release/github": "11.0.6",
|
"@semantic-release/github": "12.0.2",
|
||||||
"@semantic-release/npm": "12.0.2",
|
"@semantic-release/npm": "13.1.2",
|
||||||
"@tsconfig/node20": "20.1.6",
|
"@tsconfig/node20": "20.1.8",
|
||||||
"@tsconfig/strictest": "2.0.6",
|
"@tsconfig/strictest": "2.0.6",
|
||||||
"@types/eslint-config-prettier": "6.11.3",
|
"@types/eslint-config-prettier": "6.11.3",
|
||||||
"@types/node": "20.19.23",
|
"@types/node": "20.19.26",
|
||||||
"conventional-changelog-conventionalcommits": "8.0.0",
|
"conventional-changelog-conventionalcommits": "9.1.0",
|
||||||
"esbuild": "0.25.11",
|
"esbuild": "0.27.1",
|
||||||
"eslint": "9.38.0",
|
"eslint": "9.39.1",
|
||||||
"eslint-config-prettier": "10.1.8",
|
"eslint-config-prettier": "10.1.8",
|
||||||
"eslint-plugin-json": "4.0.1",
|
"eslint-plugin-json": "4.0.1",
|
||||||
"globals": "16.4.0",
|
"globals": "16.5.0",
|
||||||
"husky": "9.1.7",
|
"husky": "9.1.7",
|
||||||
"lint-staged": "15.5.2",
|
"lint-staged": "16.2.7",
|
||||||
"npm-run-all2": "7.0.2",
|
"npm-run-all2": "8.0.4",
|
||||||
"prettier": "3.6.2",
|
"prettier": "3.7.4",
|
||||||
"prettier-plugin-packagejson": "2.5.19",
|
"prettier-plugin-packagejson": "2.5.20",
|
||||||
"rimraf": "6.0.1",
|
"rimraf": "6.1.2",
|
||||||
"semantic-release": "24.2.9",
|
"semantic-release": "25.0.2",
|
||||||
"typescript": "5.9.3",
|
"typescript": "5.9.3",
|
||||||
"typescript-eslint": "8.46.2"
|
"typescript-eslint": "8.49.0"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.19.0",
|
"packageManager": "pnpm@10.25.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^20.9.0 || ^22.11.0",
|
"node": "^20.9.0 || ^22.11.0 || ^24.11.0",
|
||||||
"pnpm": "^10.0.0"
|
"pnpm": "^10.0.0"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
|
|
|
||||||
1270
pnpm-lock.yaml
generated
1270
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 {
|
export class Docker {
|
||||||
private static readonly image = 'ghcr.io/renovatebot/renovate';
|
private static readonly image = 'ghcr.io/renovatebot/renovate';
|
||||||
private static readonly version = '41'; // renovate
|
private static readonly version = '42'; // renovate
|
||||||
|
|
||||||
private readonly dockerImage: string;
|
private readonly dockerImage: string;
|
||||||
private readonly fullTag: string;
|
private readonly fullTag: string;
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,17 @@
|
||||||
|
import { group, notice, setFailed } from '@actions/core';
|
||||||
import { Input } from './input';
|
import { Input } from './input';
|
||||||
import { Renovate } from './renovate';
|
import { Renovate } from './renovate';
|
||||||
import { setFailed } from '@actions/core';
|
|
||||||
|
|
||||||
async function run(): Promise<void> {
|
async function run(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const input = new Input();
|
const input = new Input();
|
||||||
const renovate = new Renovate(input);
|
const renovate = new Renovate(input);
|
||||||
|
|
||||||
|
await group('Check Renovate version', async () => {
|
||||||
|
const version = await renovate.runDockerContainerForVersion();
|
||||||
|
notice(version, { title: 'Renovate CLI version' });
|
||||||
|
});
|
||||||
|
|
||||||
await renovate.runDockerContainer();
|
await renovate.runDockerContainer();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
|
import { exec, getExecOutput } from '@actions/exec';
|
||||||
import { Docker } from './docker';
|
import { Docker } from './docker';
|
||||||
import { Input } from './input';
|
import { Input } from './input';
|
||||||
import { exec } from '@actions/exec';
|
|
||||||
import fs from 'node:fs/promises';
|
import fs from 'node:fs/promises';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
|
|
||||||
|
|
@ -14,6 +14,17 @@ export class Renovate {
|
||||||
this.docker = new Docker(input);
|
this.docker = new Docker(input);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async runDockerContainerForVersion(): Promise<string> {
|
||||||
|
const command = `docker run -t --rm ${this.docker.image()} --version`;
|
||||||
|
|
||||||
|
const { exitCode, stdout } = await getExecOutput(command);
|
||||||
|
if (exitCode !== 0) {
|
||||||
|
new Error(`'docker run' failed with exit code ${exitCode}.`);
|
||||||
|
}
|
||||||
|
|
||||||
|
return stdout.trim();
|
||||||
|
}
|
||||||
|
|
||||||
async runDockerContainer(): Promise<void> {
|
async runDockerContainer(): Promise<void> {
|
||||||
await this.validateArguments();
|
await this.validateArguments();
|
||||||
|
|
||||||
|
|
@ -76,7 +87,7 @@ export class Renovate {
|
||||||
dockerArguments.push(dockerCmd);
|
dockerArguments.push(dockerCmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
const command = `docker run ${dockerArguments.join(' ')}`;
|
const command = `docker run -t ${dockerArguments.join(' ')}`;
|
||||||
|
|
||||||
const code = await exec(command);
|
const code = await exec(command);
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue