feat: workflows update #1
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: Add new PRs to Project (Current Cycle) | |
| on: | |
| pull_request: | |
| types: [opened, ready_for_review] | |
| permissions: | |
| pull-requests: read | |
| repository-projects: write | |
| jobs: | |
| add: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Setup GitHub CLI | |
| uses: ./.github/actions/setup-gh | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Add PR to project | |
| run: | | |
| if [ -n "${{ vars.PROJECT_ID }}" ]; then | |
| gh project item-add ${{ vars.PROJECT_ID }} --url "${{ github.event.pull_request.html_url }}" | |
| else | |
| echo "PROJECT_ID variable not set, skipping project addition" | |
| fi |