mirror of
https://github.com/docker/setup-compose-action.git
synced 2026-02-01 12:54:58 +01:00
Merge pull request #40 from crazy-max/update-dist-workflow
ci: update-dist workflow
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