Skip to content

Commit 0518284

Browse files
authored
ci: call infra's reusable update-infra workflow (#68)
Replaces the inline steps in infra-update.yml with a call to infra's reusable update-infra.yml workflow (added in infra v1.3.0). The triggers, concurrency and the per-repo INFRA_BOT_APP_ID / INFRA_BOT_PRIVATE_KEY setup stay the same; the token, checkout and PR steps now live in infra, so fixes reach this repo through @v1.
1 parent 05fee87 commit 0518284

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

‎.github/workflows/infra-update.yml‎

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,7 @@ concurrency: infra-update
1111

1212
jobs:
1313
update:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- id: app
17-
uses: actions/create-github-app-token@v2
18-
with:
19-
app-id: ${{ vars.INFRA_BOT_APP_ID }}
20-
private-key: ${{ secrets.INFRA_BOT_PRIVATE_KEY }}
21-
- uses: actions/checkout@v7
22-
with:
23-
token: ${{ steps.app.outputs.token }}
24-
- uses: ptsouchlos/infra/.github/actions/update-infra@v1
25-
with:
26-
token: ${{ steps.app.outputs.token }}
27-
tag: ${{ github.event.client_payload.tag }}
14+
uses: ptsouchlos/infra/.github/workflows/update-infra.yml@v1
15+
secrets: inherit
16+
with:
17+
tag: ${{ github.event.client_payload.tag }}

0 commit comments

Comments
 (0)