From b80240c808191b4dded9fad0549b6c5d7e0cbc24 Mon Sep 17 00:00:00 2001 From: Laren-AWS <57545972+Laren-AWS@users.noreply.github.com> Date: Mon, 24 Jun 2024 11:17:28 -0700 Subject: [PATCH] Revert "Create stats-lambda.yml (#6574)" This reverts commit c113101cec14a60591df0951094a73c32b2831c8. --- .github/workflows/stats-lambda.yml | 32 ------------------------------ 1 file changed, 32 deletions(-) delete mode 100644 .github/workflows/stats-lambda.yml diff --git a/.github/workflows/stats-lambda.yml b/.github/workflows/stats-lambda.yml deleted file mode 100644 index 990994fd0cd..00000000000 --- a/.github/workflows/stats-lambda.yml +++ /dev/null @@ -1,32 +0,0 @@ -# This workflow executes a Lamdba function that records metrics for each merged PR. -# -# For more information, see: -# https://github.com/marketplace/actions/invoke-aws-lambda - -name: Trigger Lambda to capture metrics -on: # yamllint disable-line rule:truthy - pull_request: - types: - - closed - workflow_dispatch: -env: - COMMIT: ${{github.event.pull_request.head.sha}} - PR_AUTHOR: ${{ github.event.pull_request.user.login }} -jobs: - if_merged: - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - name: GitHub Statistics - steps: - - name: Create payload - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\",\"author\" :\"${{ env.PR_AUTHOR }}\"}" >> $GITHUB_ENV - - name: Invoke Lambda - uses: gagoar/invoke-aws-lambda@master - with: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_SECRET_KEY_ID }} - REGION: 'eu-west-1' - FunctionName: runTheNumbers - Payload: ${{env.JSON_PAYLOAD}} - InvocationType: RequestResponse - LogType: None