From 3d585ec21aa259f246b5c3769ecfe6df7ddc3429 Mon Sep 17 00:00:00 2001 From: Pawel Wieczorkiewicz Date: Thu, 31 Aug 2023 15:31:01 +0200 Subject: [PATCH] github: fix auto_assign workflow Signed-off-by: Pawel Wieczorkiewicz --- .github/workflows/auto_assign.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/auto_assign.yml b/.github/workflows/auto_assign.yml index b7e51b39..25079f8d 100644 --- a/.github/workflows/auto_assign.yml +++ b/.github/workflows/auto_assign.yml @@ -2,19 +2,18 @@ name: Auto Assign on: issues: - types: [opened, labeled] + types: + - opened pull_request: - types: [opened, labeled] -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + types: + - opened jobs: - auto_assign: + add-to-project: + name: Add issue/PR to project runs-on: ubuntu-latest - name: Assign to Project steps: - - name: Assign NEW issues and PRs to project 1 - uses: srggrs/assign-one-project-github-action@1.2.0 - if: github.event.action == 'opened' - with: - project: 'https://github.com/awslabs/ktf/projects/1' + - uses: actions/add-to-project@0.5.0 + with: + project-url: https://github.com/orgs/KernelTestFramework/projects/2 + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}