mirror of
https://github.com/docker/setup-compose-action.git
synced 2026-02-01 21:04:59 +01:00
ci: update-dist workflow
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
35
.github/workflows/update-dist.yml
vendored
Normal file
35
.github/workflows/update-dist.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
name: update-dist
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
prepare:
|
||||||
|
if: github.actor == 'dependabot[bot]'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
token: ${{ steps.docker-read-app.outputs.token }}
|
||||||
|
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
|
||||||
|
|
||||||
|
update-dist:
|
||||||
|
if: github.actor == 'dependabot[bot]'
|
||||||
|
uses: docker/actions-toolkit/.github/workflows/action-dist-update.yml@action-dist-update
|
||||||
|
needs:
|
||||||
|
- prepare
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
with:
|
||||||
|
target: build
|
||||||
|
secrets:
|
||||||
|
github-token: ${{ needs.prepare.outputs.token }}
|
||||||
Reference in New Issue
Block a user