File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : dependabot-build
2+
3+ on :
4+ pull_request :
5+ paths :
6+ - ' package.json'
7+
8+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ if : github.actor == 'dependabot[bot]'
16+ steps :
17+ -
18+ name : Checkout
19+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+ with :
21+ ref : ${{ github.head_ref }}
22+ -
23+ name : Set up Docker Buildx
24+ uses : docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
25+ -
26+ name : Vendor
27+ uses : docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6.10.0
28+ with :
29+ targets : vendor
30+ -
31+ name : Pre-checkin
32+ uses : docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6.10.0
33+ with :
34+ targets : pre-checkin
35+ -
36+ name : Commit and push changes
37+ run : |
38+ git config user.name "github-actions[bot]"
39+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
40+ git add -A
41+ if git diff --cached --quiet; then
42+ echo "No changes to commit"
43+ else
44+ git commit -m "chore: update dist and vendor"
45+ git push
46+ fi
You can’t perform that action at this time.
0 commit comments