Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Build 1 for 8.10 with status FAILURE #446

Build 1 for 8.10 with status FAILURE

Build 1 for 8.10 with status FAILURE #446

name: Add to Elastic Agent Data Plane or Control Plane Board
on:
issues:
types:
- labeled
jobs:
add_to_data_plane-project:
runs-on: ubuntu-latest
if: |
github.event.label.name == 'Team:Elastic-Agent-Data-Plane'
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!) {
updateIssue(input: {id:$contentid, projectIds:$projectid}) {
clientMutationId
}
}
projectid: "PRO_kwDOAGc3Zs4AzG8z"
contentid: ${{ github.event.issue.node_id }}
GITHUB_TOKEN: ${{ secrets.ELASTIC_AGENT_PROJECT_BOARD_TOKEN }}
- uses: octokit/graphql-action@v2.x
id: add_to_new_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: "PN_kwDOAGc3Zs4AEk_n"
contentid: ${{ github.event.issue.node_id }}
GITHUB_TOKEN: ${{ secrets.ELASTIC_AGENT_PROJECT_BOARD_TOKEN }}
add_to_control_plane-project:
runs-on: ubuntu-latest
if: |
github.event.label.name == 'Team:Elastic-Agent-Control-Plane'
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!) {
updateIssue(input: {id:$contentid, projectIds:$projectid}) {
clientMutationId
}
}
projectid: "PRO_kwDOAGc3Zs4AzG9E"
contentid: ${{ github.event.issue.node_id }}
GITHUB_TOKEN: ${{ secrets.ELASTIC_AGENT_PROJECT_BOARD_TOKEN }}