Compare commits

..

2 Commits

Author SHA1 Message Date
CrazyMax
7c525be6cc Merge pull request #476 from crazy-max/update-dist-workflow
ci: update-dist workflow
2026-01-29 20:32:43 +01:00
CrazyMax
ca8948fcde ci: update-dist workflow
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-29 16:26:38 +01:00
5 changed files with 62 additions and 13 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

20
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -27,7 +27,7 @@
"dependencies": {
"@actions/core": "^1.11.1",
"@docker/actions-toolkit": "^0.63.0",
"js-yaml": "^4.1.1"
"js-yaml": "^4.1.0"
},
"devDependencies": {
"@eslint/compat": "^2.0.0",

View File

@@ -3569,7 +3569,7 @@ __metadata:
eslint-plugin-jest: "npm:^29.5.0"
eslint-plugin-prettier: "npm:^5.5.4"
jest: "npm:^30.2.0"
js-yaml: "npm:^4.1.1"
js-yaml: "npm:^4.1.0"
prettier: "npm:^3.7.4"
ts-jest: "npm:^29.4.6"
ts-node: "npm:^10.9.2"