Skip to content

Commit

Permalink
test/do-not-merge: sample fork
Browse files Browse the repository at this point in the history
  • Loading branch information
clementnero committed Nov 7, 2024
1 parent 5f523a4 commit a7c92b5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 29 deletions.
60 changes: 31 additions & 29 deletions .github/workflows/maintenance.yml
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 }}

4 changes: 4 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
runs-on: ubuntu-22.04
timeout-minutes: 5
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}}
- uses: actions/checkout@v4

- uses: asdf-vm/actions/install@v3
Expand Down

0 comments on commit a7c92b5

Please sign in to comment.