UnitChangeModified triggered on units that are not changed creating wierd statuses on Kibana #33
This file contains hidden or 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
| 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/[email protected] | |
| 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_ORG_GITHUB_ACTIONS_TOKEN }} | |
| add_to_control_plane-project: | |
| runs-on: ubuntu-latest | |
| if: | | |
| github.event.label.name == 'Team:Elastic-Agent-Control-Plane' | |
| steps: | |
| - uses: octokit/[email protected] | |
| 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_ORG_GITHUB_ACTIONS_TOKEN }} |