Skip to content

Commit

Permalink
Update add-to-dashboard.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD authored Nov 25, 2023
1 parent 13bae41 commit 3fa569a
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/add-to-dashboard.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 3fa569a

Please sign in to comment.