Skip to content

Commit c9b491c

Browse files
authored
ci: 👷 switch to use the reusable "add to board" (#52)
## Description Reflecting the update in `.github` repo. <!-- Select quick/in-depth as necessary --> No review necessary.
1 parent 2af4d50 commit c9b491c

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

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

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +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/add-to-project@v1.0.2
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 }}
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)