Skip to content

Commit

Permalink
Update add-to-project.yaml (#15)
Browse files Browse the repository at this point in the history
Use shared GitHub workflow instead of duplicating it in each repo.
  • Loading branch information
chrispine authored Jan 25, 2024
1 parent a01dd1e commit ffb58c1
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/add-to-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,12 @@ on:
types:
- opened
- reopened
issue_comment:
types:
- created

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- name: Get GitHub app token
uses: actions/create-github-app-token@v1
id: app_token
with:
app-id: ${{ secrets.CONNECT_EXPORT_APP_ID }}
private-key: ${{ secrets.CONNECT_EXPORT_APP_KEY }}
- uses: actions/add-to-project@v0.5.0
with:
project-url: https://github.com/orgs/connectrpc/projects/1
github-token: ${{ steps.app_token.outputs.token }}
call-workflow-add-to-project:
name: Call workflow to add issue to project
uses: connectrpc/base-workflows/.github/workflows/add-to-project.yaml@main
secrets: inherit

0 comments on commit ffb58c1

Please sign in to comment.