From b2b8186647e8c1a0ca349edc24714ac31f56d284 Mon Sep 17 00:00:00 2001 From: Harshad Reddy Nalla Date: Thu, 5 Oct 2023 02:44:48 -0400 Subject: [PATCH] Re-adjust Auto Add Issues to Tracking boards Signed-off-by: Harshad Reddy Nalla --- .github/workflows/auto-add-issue-to-project.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-add-issue-to-project.yml b/.github/workflows/auto-add-issue-to-project.yml index 5220c777e..8124d26af 100644 --- a/.github/workflows/auto-add-issue-to-project.yml +++ b/.github/workflows/auto-add-issue-to-project.yml @@ -1,14 +1,24 @@ -name: Add Issues to ODH Feature Tracking Project +name: Auto Add Issues to Tracking boards on: issues: types: - opened jobs: add-to-project: - name: Add issue to project + name: Add issue to projects runs-on: ubuntu-latest steps: + - name: Generate github-app token + id: app-token + uses: getsentry/action-github-app-token@v2 + with: + app_id: ${{ secrets.DEVOPS_APP_ID }} + private_key: ${{ secrets.DEVOPS_APP_PRIVATE_KEY }} - uses: actions/add-to-project@v0.5.0 with: project-url: https://github.com/orgs/opendatahub-io/projects/40 - github-token: ${{ secrets.GH_TOKEN }} + github-token: ${{ steps.app-token.outputs.token }} + - uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/opendatahub-io/projects/45 + github-token: ${{ steps.app-token.outputs.token }} \ No newline at end of file