-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12285 from trilinos/csiefer2-workflow-update
Actions: Update tpetra_muelu_label_to_project.yml to add Labels based on Title
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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') | ||
|