Skip to content

Commit

Permalink
chore: update add item to project to use the unleash bot (#32)
Browse files Browse the repository at this point in the history
This PR updates the workflow that adds items to the project board to
use the new Unleash bot instead of my personal token.

I believe that all sub-repos are configured with the following job
definition, which should make this update automatic and smooth:

```yaml
jobs:
  add-to-project:
      uses: unleash/.github/.github/workflows/add-item-to-project.yml@main
      secrets: inherit
```
  • Loading branch information
thomasheartman authored Jan 9, 2025
1 parent d84858e commit 6518dbf
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/add-item-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ name: Add new item to project board

on:
workflow_call:
secrets:
UNLEASH_BOT_APP_ID:
description: "The app ID for the Unleash bot"
required: true
UNLEASH_BOT_PRIVATE_KEY:
description: "The private key for the Unleash bot"
required: true
issues:
types:
- opened
Expand All @@ -14,7 +21,14 @@ jobs:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.UNLEASH_BOT_APP_ID }}
private-key: ${{ secrets.UNLEASH_BOT_PRIVATE_KEY }}

- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/Unleash/projects/8
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
github-token: ${{ steps.generate-token.outputs.token }}

0 comments on commit 6518dbf

Please sign in to comment.