Skip to content

Commit 6e17a3c

Browse files
committed
chore(sync): 🔨 synced local '.github/workflows/' with remote '.github/workflows/'
1 parent a0026b0 commit 6e17a3c

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed

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

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- opened
77
- reopened
88
- transferred
9-
pull_request:
9+
pull_request:
1010
types:
1111
- reopened
1212
- opened
@@ -16,22 +16,9 @@ permissions:
1616

1717
jobs:
1818
add-to-project:
19-
name: Add to project
20-
runs-on: ubuntu-latest
21-
steps:
22-
- name: Add issue or PR to project board
23-
uses: actions/[email protected]
24-
with:
25-
project-url: https://github.com/orgs/seedcase-project/projects/18
26-
github-token: ${{ secrets.ADD_TO_BOARD }}
27-
28-
- name: Assign PR to creator
29-
if: ${{ github.event_name == 'pull_request' }}
30-
run: |
31-
gh pr edit $PR --add-assignee $AUTHOR
32-
env:
33-
AUTHOR: ${{ github.event.pull_request.user.login }}
34-
PR: ${{ github.event.pull_request.html_url }}
35-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
37-
19+
uses: seedcase-project/.github/.github/workflows/reusable-add-to-project.yml@main
20+
with:
21+
board-number: 18
22+
secrets:
23+
add-to-board-token: ${{ secrets.ADD_TO_BOARD }}
24+
gh-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)