Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Update project.yml

Update project.yml #9

Workflow file for this run

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]"