chore: release 1.22.0 #2
This file contains hidden or 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
| --- | |
| # GitHub Actions workflow para automaticamente adicionar PRs e issues ao project board do Modern Gitops Stack. | |
| # | |
| # Este workflow gerencia issues e pull requests no projeto Modern Gitops Stack, | |
| # organizando-os no board para melhor acompanhamento e gestão. | |
| name: "modern-gitops-stack-add-to-project" | |
| on: | |
| workflow_call: | |
| secrets: | |
| PROJECT_APP_PRIVATE_KEY: | |
| description: "GitHub App private key para o projeto Modern Gitops Stack" | |
| required: true | |
| issues: | |
| types: | |
| - opened | |
| - reopened | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| jobs: | |
| add-to-project: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Gerar token de autenticação do GitHub App | |
| id: generate_token | |
| uses: tibdex/github-app-token@v2 | |
| with: | |
| app_id: 882683 | |
| private_key: ${{ secrets.PROJECT_APP_PRIVATE_KEY }} | |
| - name: Adicionar PR ou issue ao project board do Modern Gitops Stack | |
| id: add-to-project | |
| uses: actions/add-to-project@v1.0.2 | |
| with: | |
| project-url: https://github.com/users/GersonRS/projects/2 | |
| github-token: ${{ steps.generate_token.outputs.token }} | |
| - name: Auto-atribuição ao autor | |
| uses: toshimaru/auto-author-assign@v2.1.1 | |
| with: | |
| repo-token: ${{ steps.generate_token.outputs.token }} |