Skip to content

Commit

Permalink
Update and rename project-infra-monitoring-ui.yml to add-to-imui-proj…
Browse files Browse the repository at this point in the history
…ect.yml (#126963)

The previous action was failing with an obscure JSON error, so I've copied the APM and Fleet actions instead.
  • Loading branch information
jasonrhodes committed Mar 4, 2022
1 parent 5f8f4d7 commit 9514e6b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 25 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/add-to-imui-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Add to Infra Monitoring UI project
on:
issues:
types:
- labeled
jobs:
add_to_project:
runs-on: ubuntu-latest
if: |
contains(github.event.issue.labels.*.name, 'Team:Infra Monitoring UI') ||
contains(github.event.issue.labels.*.name, 'Feature:Stack Monitoring') ||
contains(github.event.issue.labels.*.name, 'Feature:Logs UI') ||
contains(github.event.issue.labels.*.name, 'Feature:Metrics UI')
steps:
- uses: octokit/graphql-action@v2.x
id: add_to_project
with:
headers: '{"GraphQL-Features": "projects_next_graphql"}'
query: |
mutation add_to_project($projectid:ID!,$contentid:ID!) {
addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) {
projectNextItem {
id
}
}
}
projectid: ${{ env.PROJECT_ID }}
contentid: ${{ github.event.issue.node_id }}
env:
PROJECT_ID: "PN_kwDOAGc3Zs1EEA"
GITHUB_TOKEN: ${{ secrets.PROJECT_ASSIGNER_TOKEN }}
25 changes: 0 additions & 25 deletions .github/workflows/project-infra-monitoring-ui.yml

This file was deleted.

0 comments on commit 9514e6b

Please sign in to comment.