Skip to content

Commit

Permalink
feat: add reusable workflow to triage issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbruijn committed Aug 15, 2022
1 parent 412dc53 commit 830f413
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/triage-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Triage issue
on:
workflow_call:
inputs:
projectUrl:
type: string
default: https://github.com/orgs/vidavidorra/projects/2
required: false
secrets:
TRIAGE_APP_ID:
description: 'GitHub App ID used for triage'
required: true
TRIAGE_PRIVATE_KEY:
description: 'private key of the GitHub App used for triage'
required: true
jobs:
triage-issue:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Generate token
id: generate_token
uses: vidavidorra/github-app-token@e1df6ef2d28f0b02c63c7e9446e12547584f17fe # renovate: tag=v1.0.0
with:
appId: ${{ secrets.TRIAGE_APP_ID }}
privateKey: ${{ secrets.TRIAGE_PRIVATE_KEY }}
- uses: actions/add-to-project@a9f041ddd462ed185893ea1024cec954f50dbe42 # renovate: tag=v0.3.0
with:
project-url: ${{ inputs.projectUrl }}
github-token: ${{ steps.generate_token.outputs.token }}

0 comments on commit 830f413

Please sign in to comment.