Compare commits

..

2 Commits

Author SHA1 Message Date
CrazyMax
a60f0f62b5 Merge pull request #598 from crazy-max/update-dist-workflow
ci: update-dist workflow
2026-01-29 21:27:37 +01:00
CrazyMax
10f4f1aaa5 ci: update-dist workflow
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-29 16:25:39 +01:00
3 changed files with 51 additions and 45 deletions

49
.github/workflows/update-dist.yml vendored Normal file
View File

@@ -0,0 +1,49 @@
name: update-dist
on:
pull_request:
types:
- opened
- synchronize
jobs:
update-dist:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
-
name: GitHub auth token from GitHub App
id: docker-read-app
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.GHACTIONS_REPO_WRITE_APP_ID }}
private-key: ${{ secrets.GHACTIONS_REPO_WRITE_APP_PRIVATE_KEY }}
owner: docker
-
name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
token: ${{ steps.docker-read-app.outputs.token || github.token }}
-
name: Build
uses: docker/bake-action@v6
with:
source: .
targets: build
-
name: Commit and push dist
run: |
if [ -n "$(git status --porcelain -- dist)" ]; then
(
set -x
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add dist
git commit -m "chore: update generated content"
git push
)
else
echo "No changes in dist"
fi

View File

@@ -27,7 +27,7 @@
"license": "Apache-2.0",
"packageManager": "yarn@4.9.2",
"dependencies": {
"@actions/core": "^3.0.0",
"@actions/core": "^1.11.1",
"@actions/github": "^6.0.1",
"@docker/actions-toolkit": "^0.68.0",
"@renovate/pep440": "^1.0.0",

View File

@@ -72,16 +72,6 @@ __metadata:
languageName: node
linkType: hard
"@actions/core@npm:^3.0.0":
version: 3.0.0
resolution: "@actions/core@npm:3.0.0"
dependencies:
"@actions/exec": "npm:^3.0.0"
"@actions/http-client": "npm:^4.0.0"
checksum: 10/fddeebfaf6dfd199d9267a33a97d57e2f7afed7605a54e4a3c35a5a1455a5a8f29f1837bf6ac1711b223a457ba15339189f344c57629c52dbf3a216e96c728d6
languageName: node
linkType: hard
"@actions/exec@npm:^1.0.0, @actions/exec@npm:^1.0.1, @actions/exec@npm:^1.1.1":
version: 1.1.1
resolution: "@actions/exec@npm:1.1.1"
@@ -91,15 +81,6 @@ __metadata:
languageName: node
linkType: hard
"@actions/exec@npm:^3.0.0":
version: 3.0.0
resolution: "@actions/exec@npm:3.0.0"
dependencies:
"@actions/io": "npm:^3.0.2"
checksum: 10/c1904163e326cbe27f887514b4837e357d46e7a6c5eeda66c0e2efffd2772cb34d8ef0a2a48c65eb0e3b6ec72beb9b049eaba343c9f55978d3f45b09d09d2c54
languageName: node
linkType: hard
"@actions/github@npm:^6.0.1":
version: 6.0.1
resolution: "@actions/github@npm:6.0.1"
@@ -145,16 +126,6 @@ __metadata:
languageName: node
linkType: hard
"@actions/http-client@npm:^4.0.0":
version: 4.0.0
resolution: "@actions/http-client@npm:4.0.0"
dependencies:
tunnel: "npm:^0.0.6"
undici: "npm:^6.23.0"
checksum: 10/05f606174577cae62f563361326cc81ee4c83c468dd75e87ac93f59e8d53369a6479c3fc28a4e8ea1bfbb50c8ed7db941629b5dd9f6e3855fe5f639a2ccdabc5
languageName: node
linkType: hard
"@actions/io@npm:^1.0.1, @actions/io@npm:^1.1.1":
version: 1.1.3
resolution: "@actions/io@npm:1.1.3"
@@ -169,13 +140,6 @@ __metadata:
languageName: node
linkType: hard
"@actions/io@npm:^3.0.2":
version: 3.0.2
resolution: "@actions/io@npm:3.0.2"
checksum: 10/ef17cb4ec0a2b640d5f4851446ad1c12bf4b2b1cf83741c5eecee4e8f50b3ca3ac9ae4084027dcaa1bf0c016d653dbc0e5fe20daedd39ee5fb6edb671f6e45b5
languageName: node
linkType: hard
"@actions/tool-cache@npm:^2.0.2":
version: 2.0.2
resolution: "@actions/tool-cache@npm:2.0.2"
@@ -3662,7 +3626,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "docker-metadata-action@workspace:."
dependencies:
"@actions/core": "npm:^3.0.0"
"@actions/core": "npm:^1.11.1"
"@actions/github": "npm:^6.0.1"
"@docker/actions-toolkit": "npm:^0.68.0"
"@eslint/compat": "npm:^2.0.0"
@@ -7129,13 +7093,6 @@ __metadata:
languageName: node
linkType: hard
"undici@npm:^6.23.0":
version: 6.23.0
resolution: "undici@npm:6.23.0"
checksum: 10/56950995e7b628e62c996430445d17995ca9b70f6f2afe760a63da54205660d968bd08f0741b6f4fb008f40aa35c69cce979cd96ced399585d8c897a76a4f1d1
languageName: node
linkType: hard
"unique-filename@npm:^3.0.0":
version: 3.0.0
resolution: "unique-filename@npm:3.0.0"