From 120a5b5082410cd4d18ede8ac22afa0679c6422a Mon Sep 17 00:00:00 2001 From: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com> Date: Sat, 25 Nov 2023 17:01:22 -0500 Subject: [PATCH] Update add-to-dashboard.yml --- .github/workflows/add-to-dashboard.yml | 32 +++++++------------------- 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/.github/workflows/add-to-dashboard.yml b/.github/workflows/add-to-dashboard.yml index 0fc3d2a0..e72d9896 100644 --- a/.github/workflows/add-to-dashboard.yml +++ b/.github/workflows/add-to-dashboard.yml @@ -1,35 +1,19 @@ -name: Add Issue or PR to Dashboard +name: Add Issue or Pull Request to Dashboard on: issues: - types: opened - + types: + - opened pull_request: types: - opened jobs: - issue_opened: - name: Add Issue to Dashboard - runs-on: ubuntu-latest - if: github.event_name == 'issues' - steps: - - name: Add Issue to Dashboard - uses: leonsteinhaeuser/project-beta-automations@v1.2.1 - with: - gh_token: ${{ secrets.MY_GITHUB_TOKEN }} - organization: catalystneuro - project_id: 3 - resource_node_id: ${{ github.event.issue.node_id }} - pr_opened: - name: Add PR to Dashboard + add-to-project: + name: Add issue or pull request to project runs-on: ubuntu-latest - if: github.event_name == 'pull_request' && github.event.action == 'opened' steps: - - name: Add PR to Dashboard - uses: leonsteinhaeuser/project-beta-automations@v1.2.1 + - uses: actions/add-to-project@v0.5.0 with: - gh_token: ${{ secrets.MY_GITHUB_TOKEN }} - organization: catalystneuro - project_id: 3 - resource_node_id: ${{ github.event.pull_request.node_id }} + project-url: https://github.com/orgs/catalystneuro/projects/3 + github-token: ${{ secrets.PROJECT_TOKEN }}