-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f523a4
commit a7c92b5
Showing
2 changed files
with
35 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
--- | ||
name: Configure maintenance Pull Request | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- labeled | ||
- opened | ||
|
||
jobs: | ||
configure-pr: | ||
name: Configure maintenance Pull Request | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate a GitHub token | ||
id: github-token | ||
uses: camunda/infra-global-github-actions/generate-github-app-token-from-vault-secrets@main | ||
with: | ||
github-app-id-vault-key: GITHUB_APP_ID | ||
github-app-id-vault-path: secret/data/products/infra/ci/team-infrastructure | ||
github-app-private-key-vault-key: GITHUB_APP_PRIVATE_KEY | ||
github-app-private-key-vault-path: secret/data/products/infra/ci/team-infrastructure | ||
vault-auth-method: approle | ||
vault-auth-role-id: ${{ secrets.VAULT_ROLE_ID }} | ||
vault-auth-secret-id: ${{ secrets.VAULT_SECRET_ID}} | ||
vault-url: ${{ secrets.VAULT_ADDR }} | ||
- name: Apply maintenance parameters to the Pull Request if applicable | ||
uses: camunda/infra-global-github-actions/teams/infra/configure-maintenance-pull-request@main | ||
with: | ||
github-token: ${{ steps.github-token.outputs.token }} | ||
name: Configure maintenance Pull Request | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
configure-pr: | ||
name: Configure maintenance Pull Request | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
echo github.repository_owner=${{ github.repository_owner}} | ||
echo github.event.pull_request.head.repo.full_name=${{ github.event.pull_request.head.repo.full_name}} | ||
echo github.event.pull_request.base.repo.full_name=${{ github.event.pull_request.base.repo.full_name}} | ||
- name: Generate a GitHub token | ||
id: github-token | ||
uses: camunda/infra-global-github-actions/generate-github-app-token-from-vault-secrets@main | ||
with: | ||
github-app-id-vault-key: GITHUB_APP_ID | ||
github-app-id-vault-path: secret/data/products/infra/ci/team-infrastructure | ||
github-app-private-key-vault-key: GITHUB_APP_PRIVATE_KEY | ||
github-app-private-key-vault-path: secret/data/products/infra/ci/team-infrastructure | ||
vault-auth-method: approle | ||
vault-auth-role-id: ${{ secrets.VAULT_ROLE_ID }} | ||
vault-auth-secret-id: ${{ secrets.VAULT_SECRET_ID}} | ||
vault-url: ${{ secrets.VAULT_ADDR }} | ||
- name: Apply maintenance parameters to the Pull Request if applicable | ||
uses: camunda/infra-global-github-actions/teams/infra/configure-maintenance-pull-request@main | ||
with: | ||
github-token: ${{ steps.github-token.outputs.token }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters