This repository has been archived by the owner on May 31, 2024. It is now read-only.
Update project.yml #9
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: Project | |
on: | |
issues: | |
types: | |
- opened | |
pull_request: | |
types: | |
- opened | |
jobs: | |
add-issue: | |
if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }} | |
name: Add issue to project | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
project-url: https://github.com/orgs/tiki/projects/1 | |
github-token: ${{ secrets.GH_PROJECT_PAT }} | |
add-pr: | |
if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }} | |
name: Add pull request to project | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
project-url: https://github.com/orgs/tiki/projects/1 | |
github-token: ${{ secrets.GH_PROJECT_PAT }} | |
id: add-project | |
- uses: titoportas/[email protected] | |
with: | |
project-url: https://github.com/orgs/tiki/projects/1 | |
github-token: ${{ secrets.GH_PROJECT_PAT }} | |
item-id: ${{ steps.add-project.outputs.itemId }} | |
field-keys: Sprint | |
field-values: "[0]" |