Skip to content

Commit 2486acd

Browse files
committed
xyz
1 parent b7862bd commit 2486acd

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

.github/workflows/add-to-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ on:
2424

2525
jobs:
2626
Add-to-project:
27+
if: "${{ github.repository_owner }}" == 'pxLi' # avoid adding issues from forks
2728
runs-on: ubuntu-latest
2829
steps:
2930
- name: add-to-project
3031
uses: pxLi/spark-rapids-common/add-to-project@pxli-22
3132
with:
32-
owner: ${{ github.repository_owner }}
3333
token: ${{ secrets.PROJECT_TOKEN }}

add-to-project/action.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,18 @@
1313
# limitations under the License.
1414

1515
name: "Add to Project"
16-
description: "Add new issue and pull request to the project"
16+
description: "Add new issue or pull request to the project"
1717
inputs:
18-
owner:
19-
description: "Repository Owner"
20-
required: true
21-
type: string
2218
token:
2319
description: "GitHub token"
2420
required: true
2521
type: string
2622

27-
jobs:
28-
add-to-project:
29-
if: "${{ inputs.owner }}" == 'pxLi' # avoid adding issues from forks
30-
name: Add new issues and pull requests to project
31-
runs-on: ubuntu-latest
32-
steps:
33-
- uses: actions/[email protected]
34-
with:
35-
project-url: https://github.com/users/pxLi/projects/2
36-
github-token: ${{ inputs.token }}
23+
runs:
24+
using: "composite"
25+
steps:
26+
- name: Adding to project
27+
uses: actions/[email protected]
28+
with:
29+
project-url: https://github.com/users/pxLi/projects/2
30+
github-token: ${{ inputs.token }}

0 commit comments

Comments
 (0)