Initial configuration for branch metadata file #16512
Workflow file for this run
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
| name: gh-project-integration | |
| on: | |
| pull_request_target: | |
| types: [ opened, reopened, edited, closed ] | |
| jobs: | |
| rancher_gh_project: | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| repository-projects: write | |
| id-token: write | |
| if: ${{ github.repository_owner == 'rancher' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - name: Read secrets | |
| uses: rancher-eio/read-vault-secrets@main | |
| with: | |
| secrets: | | |
| secret/data/github/repo/${{ github.repository }}/github/app-credentials appId | APP_ID ; | |
| secret/data/github/repo/${{ github.repository }}/github/app-credentials privateKey | APP_PEM | |
| - name: Generate Token | |
| id: generate-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ env.APP_ID }} | |
| private-key: ${{ env.APP_PEM }} | |
| - name: script | |
| env: | |
| GH_TOKEN: ${{ steps.generate-token.outputs.token }} | |
| PR_PROJECT: ${{ secrets.PR_PROJECT }} | |
| run: node .github/workflows/scripts/pr-gh-project.js |