From ba200459d6e16b3af438e0c00c29e4f399e7c31e Mon Sep 17 00:00:00 2001 From: Peixin Date: Tue, 21 Jan 2025 13:42:46 +0800 Subject: [PATCH] Use common add-to-project action [skip ci] (#11982) follow up of https://github.com/NVIDIA/spark-rapids-common/issues/22 to avoid update action details for multiple `spark-rapids*` repos in the future Signed-off-by: Peixin Li --- .github/workflows/add-to-project.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index 1f84a5c9d7e..a0998ecd280 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024, NVIDIA CORPORATION. +# Copyright (c) 2022-2025, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -23,13 +23,11 @@ on: - opened jobs: - add-to-project: - if: github.repository == 'NVIDIA/spark-rapids' - name: Add new issues and pull requests to project + Add-to-project: + if: github.repository_owner == 'NVIDIA' # avoid adding issues from forks runs-on: ubuntu-latest steps: - - uses: actions/add-to-project@v0.6.1 + - name: add-to-project + uses: NVIDIA/spark-rapids-common/add-to-project@main with: - project-url: https://github.com/orgs/NVIDIA/projects/4 - github-token: ${{ secrets.PROJECT_TOKEN }} - + token: ${{ secrets.PROJECT_TOKEN }}