Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update add item to project to use the unleash bot #32

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading