Skip to content

Commit 1fc6ffe

Browse files
authored
Merge pull request #40 from crazy-max/update-dist-workflow
ci: update-dist workflow
2 parents 23d018c + 9664d39 commit 1fc6ffe

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/update-dist.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: update-dist
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
9+
jobs:
10+
prepare:
11+
if: github.actor == 'dependabot[bot]'
12+
runs-on: ubuntu-latest
13+
outputs:
14+
token: ${{ steps.docker-read-app.outputs.token }}
15+
steps:
16+
-
17+
name: GitHub auth token from GitHub App
18+
id: docker-read-app
19+
uses: actions/create-github-app-token@v2
20+
with:
21+
app-id: ${{ secrets.GHACTIONS_REPO_WRITE_APP_ID }}
22+
private-key: ${{ secrets.GHACTIONS_REPO_WRITE_APP_PRIVATE_KEY }}
23+
owner: docker
24+
25+
update-dist:
26+
if: github.actor == 'dependabot[bot]'
27+
uses: docker/actions-toolkit/.github/workflows/action-dist-update.yml@action-dist-update
28+
needs:
29+
- prepare
30+
permissions:
31+
contents: write
32+
with:
33+
target: build
34+
secrets:
35+
github-token: ${{ needs.prepare.outputs.token }}

0 commit comments

Comments
 (0)