Skip to content

Commit

Permalink
Merge pull request #12285 from trilinos/csiefer2-workflow-update
Browse files Browse the repository at this point in the history
Actions: Update tpetra_muelu_label_to_project.yml to add Labels based on Title
  • Loading branch information
jhux2 authored Sep 19, 2023
2 parents f966e40 + 5ab8ac5 commit dc5a72a
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 dc5a72a

Please sign in to comment.