forked from linkyard/docker-logrotate
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.03 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Handle Release PRs
on:
push:
branches:
- master
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Import Secrets
id: vault-secrets
uses: hashicorp/[email protected]
with:
url: ${{ secrets.VAULT_ADDR }}
method: approle
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID}}
secrets: |
secret/data/products/infra/ci/infra-releases RELEASES_APP_ID;
secret/data/products/infra/ci/infra-releases RELEASES_APP_KEY;
- name: Generate a GitHub token for infra-rerun camunda/infra-global-github-actions
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ steps.vault-secrets.outputs.RELEASES_APP_ID }}
private-key: ${{ steps.vault-secrets.outputs.RELEASES_APP_KEY }}
- name: Handle Release Creation
uses: camunda/infra-global-github-actions/teams/infra/pull-request/release@main
with:
github-token: ${{ steps.app-token.outputs.token }}