Skip to content

Commit 1ebdede

Browse files
authored
Merge pull request #288 from crazy-max/update-dist
ci: update-dist workflow
2 parents 0d273ce + da831b3 commit 1ebdede

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/update-dist.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: update-dist
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
permissions:
8+
contents: read
9+
10+
on:
11+
pull_request:
12+
types:
13+
- opened
14+
- reopened
15+
- synchronize
16+
17+
jobs:
18+
update-dist:
19+
if: github.actor == 'dependabot[bot]' && github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == github.event.pull_request.head.repo.full_name
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write # to push to the repository
23+
steps:
24+
-
25+
name: Checkout
26+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
27+
with:
28+
ref: ${{ github.event.pull_request.head.sha }}
29+
persist-credentials: false
30+
-
31+
name: Build
32+
uses: docker/bake-action@6614cfa25eff9a0b2b2697efb0b6159e7680d584 # v7.2.0
33+
with:
34+
source: .
35+
targets: build
36+
-
37+
name: Commit and push dist
38+
uses: planetscale/ghcommit-action@a6b150b81dca5dd027baa898604418eec9e11465 # v0.2.22
39+
with:
40+
commit_message: "[dependabot skip] chore: update generated content"
41+
repo: ${{ github.repository }}
42+
branch: ${{ github.event.pull_request.head.ref }}
43+
file_pattern: dist
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)