mirror of
https://github.com/docker/metadata-action.git
synced 2026-02-09 09:14:07 +08:00
Merge pull request #598 from crazy-max/update-dist-workflow
Some checks failed
validate / prepare (push) Successful in 10s
test / test (push) Successful in 50s
validate / validate (push) Successful in 1m2s
ci / context (git) (push) Successful in 16s
ci / context (workflow) (push) Successful in 23s
ci / tag-schedule ({{date 'YYYYMMDD-HHmmss'}}) (push) Successful in 20s
ci / tag-match (\d.\d, 0) (push) Successful in 19s
ci / multi-images (push) Successful in 22s
ci / tag-schedule () (push) Successful in 23s
ci / tag-schedule (cron-{{date 'YYYYMMDD'}}) (push) Successful in 22s
ci / tag-schedule (schedule) (push) Successful in 23s
ci / tag-match (\d.\d.\d, 0) (push) Successful in 9s
ci / tag-match (v(.*), 1) (push) Successful in 11s
ci / tag-semver (auto) (push) Successful in 15s
ci / tag-semver (false) (push) Successful in 17s
ci / flavor (push) Successful in 19s
ci / global-exps (push) Successful in 17s
ci / tag-semver (true) (push) Successful in 20s
ci / custom-labels-annotations (push) Successful in 20s
ci / images (push) Successful in 21s
ci / json (push) Successful in 14s
ci / no-output-env (push) Successful in 14s
ci / sep-tags ( ) (push) Successful in 17s
ci / sep-tags (,) (push) Successful in 19s
ci / no-images (push) Successful in 17s
ci / docker-push (push) Failing after 29s
ci / output-env (push) Successful in 23s
ci / sha-short () (push) Successful in 10s
ci / sha-short (16) (push) Successful in 11s
ci / bake-path-context (push) Successful in 20s
ci / dump (push) Successful in 20s
ci / bake (push) Successful in 2m16s
ci / bake-annotations (push) Successful in 2m12s
Some checks failed
validate / prepare (push) Successful in 10s
test / test (push) Successful in 50s
validate / validate (push) Successful in 1m2s
ci / context (git) (push) Successful in 16s
ci / context (workflow) (push) Successful in 23s
ci / tag-schedule ({{date 'YYYYMMDD-HHmmss'}}) (push) Successful in 20s
ci / tag-match (\d.\d, 0) (push) Successful in 19s
ci / multi-images (push) Successful in 22s
ci / tag-schedule () (push) Successful in 23s
ci / tag-schedule (cron-{{date 'YYYYMMDD'}}) (push) Successful in 22s
ci / tag-schedule (schedule) (push) Successful in 23s
ci / tag-match (\d.\d.\d, 0) (push) Successful in 9s
ci / tag-match (v(.*), 1) (push) Successful in 11s
ci / tag-semver (auto) (push) Successful in 15s
ci / tag-semver (false) (push) Successful in 17s
ci / flavor (push) Successful in 19s
ci / global-exps (push) Successful in 17s
ci / tag-semver (true) (push) Successful in 20s
ci / custom-labels-annotations (push) Successful in 20s
ci / images (push) Successful in 21s
ci / json (push) Successful in 14s
ci / no-output-env (push) Successful in 14s
ci / sep-tags ( ) (push) Successful in 17s
ci / sep-tags (,) (push) Successful in 19s
ci / no-images (push) Successful in 17s
ci / docker-push (push) Failing after 29s
ci / output-env (push) Successful in 23s
ci / sha-short () (push) Successful in 10s
ci / sha-short (16) (push) Successful in 11s
ci / bake-path-context (push) Successful in 20s
ci / dump (push) Successful in 20s
ci / bake (push) Successful in 2m16s
ci / bake-annotations (push) Successful in 2m12s
ci: update-dist workflow
This commit is contained in:
49
.github/workflows/update-dist.yml
vendored
Normal file
49
.github/workflows/update-dist.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user