From 7f5f4dbd29b381f0ef26a2b2ac34cb01f0ef6d2b Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Thu, 2 May 2024 13:15:43 +0200 Subject: [PATCH] added issues workflow --- .github/workflows/issue-ingest-stats.yml | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/issue-ingest-stats.yml diff --git a/.github/workflows/issue-ingest-stats.yml b/.github/workflows/issue-ingest-stats.yml new file mode 100644 index 000000000..06e16cf9c --- /dev/null +++ b/.github/workflows/issue-ingest-stats.yml @@ -0,0 +1,31 @@ +name: 'Ingest Issue' + +on: + issues: + types: + - opened + - edited + - closed + - deleted + - reopened + - labeled + - unlabeled + +concurrency: + group: 'issue-stats-${{github.event.issue.id}}' + cancel-in-progress: false + +jobs: + issue: + name: Ingest + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Ingest Issue + uses: elastic/clients-team-automations/issues_stats@main + with: + issue_payload: ${{ toJSON(github.event.issue) }} + es_cloud_id: ${{ vars.ES_CLOUD_ID }} + es_api_key: ${{ secrets.ES_API_KEY }}