test/do-not-merge: sample fork #624
Workflow file for this run
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
--- | |
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 }} | |