Test PR #1
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: "Add PR to project board" | |
on: | |
pull_request_target: | |
types: | |
- opened | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
jobs: | |
title-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate token | |
id: generate-token | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ vars.APP_ID }} | |
private-key: ${{ secrets.APP_PEM }} | |
- name: Add PR to project | |
env: | |
GH_TOKEN: ${{ steps.generate-token.outputs.token }} | |
run: | | |
gh project item-add --owner Submitty 1 --url "$PR_URL" |