Skip to content

Commit

Permalink
Update tpetra_muelu_label_to_project.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
csiefer2 authored Sep 19, 2023
1 parent fc97faa commit 5ab8ac5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/tpetra_muelu_label_to_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,33 @@ permissions:
jobs:
assign_one_project:
permissions:
issues: write # for actions/github-script@v6
repository-projects: write # for srggrs/assign-one-project-github-action to assign issues and PRs to repo project
name: Assign to MueLu or Tpetra Project
runs-on: ubuntu-latest
steps:
- name: Add MueLu Label
uses: actions/github-script@v6
if: contains(github.event.issue.title, 'MueLu')
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["pkg: MueLu"]
})
- name: Add Tpetra Label
uses: actions/github-script@v6
if: contains(github.event.issue.title, 'Tpetra')
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["pkg: Tpetra"]
})
- name: Add to MueLu Project
uses: srggrs/[email protected]
if: contains(github.event.label.name, 'MueLu') || contains(github.event.issue.title, 'MueLu')
Expand Down

0 comments on commit 5ab8ac5

Please sign in to comment.