This repository has been archived by the owner on May 31, 2024. It is now read-only.
Update project.yml #6
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 }} | |
- uses: austenstone/project-update@main | |
with: | |
project-number: 1 | |
organization: tiki | |
github-token: ${{ secrets.GH_PROJECT_PAT }} | |
item-id: ${{ github.event.number }} | |
field-names: Sprint | |
field-values: "[0]" |