From 54b215a84e23d2e6651e610688bc1c3c4d0dc9ff Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:36:59 +0100 Subject: [PATCH 01/31] Create stats_lambda.yml Action to trigger run the Numbers lambda --- .github/workflows/stats_lambda.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/stats_lambda.yml diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml new file mode 100644 index 00000000000..7291441678d --- /dev/null +++ b/.github/workflows/stats_lambda.yml @@ -0,0 +1,31 @@ +# This workflow executes a Lamdba function that recording metrics for each successfully merged PR. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/marketplace/actions/invoke-aws-lambda + +name: Invoke runTheNumbers lambda functions +on: + pull_request: + types: + - closed + workflow_dispatch: +env: + COMMIT: ${{github.event.pull_request.head.sha}} +jobs: + if_merged: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"}" >> $GITHUB_ENV + - name: Invoke runTheNumbers + uses: gagoar/invoke-aws-lambda@master + with: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + REGION: 'eu-west-1' + FunctionName: runTheNumbers + Payload: ${{env.JSON_PAYLOAD}} + InvocationType: RequestResponse + LogType: None From 01866204e6b9ecaaab27ac0a3c9ea1b0a50bc6eb Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 11:22:44 +0100 Subject: [PATCH 02/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 40 +++++++++++++++--------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 7291441678d..266708bcc3e 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -1,31 +1,31 @@ -# This workflow executes a Lamdba function that recording metrics for each successfully merged PR. +# This workflow executes a Lamdba function that records metrics for each successfully merged PR. # -# You can adjust the behavior by modifying this file. # For more information, see: # https://github.com/marketplace/actions/invoke-aws-lambda -name: Invoke runTheNumbers lambda functions +name: Invoke Lambda function for GitHub example/snippet metrics on: - pull_request: - types: - - closed - workflow_dispatch: + pull_request: + types: + - closed + workflow_dispatch: env: - COMMIT: ${{github.event.pull_request.head.sha}} + COMMIT: ${{github.event.pull_request.head.sha}} jobs: - if_merged: + if_merged: + name: Generate Repo Statistics if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"}" >> $GITHUB_ENV - - name: Invoke runTheNumbers - uses: gagoar/invoke-aws-lambda@master + - uses: actions/checkout@v2 + - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"}" >> $GITHUB_ENV + - name: Invoke runTheNumbers + uses: gagoar/invoke-aws-lambda@master with: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - REGION: 'eu-west-1' - FunctionName: runTheNumbers - Payload: ${{env.JSON_PAYLOAD}} - InvocationType: RequestResponse - LogType: None + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + REGION: 'eu-west-1' + FunctionName: runTheNumbers + Payload: ${{env.JSON_PAYLOAD}} + InvocationType: RequestResponse + LogType: None From f6a5289a9a1bd9a1af4c9ad295a2257d045a2bf2 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 11:25:23 +0100 Subject: [PATCH 03/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 266708bcc3e..443352a2018 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -4,6 +4,7 @@ # https://github.com/marketplace/actions/invoke-aws-lambda name: Invoke Lambda function for GitHub example/snippet metrics + on: pull_request: types: @@ -21,11 +22,11 @@ jobs: - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"}" >> $GITHUB_ENV - name: Invoke runTheNumbers uses: gagoar/invoke-aws-lambda@master - with: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - REGION: 'eu-west-1' - FunctionName: runTheNumbers - Payload: ${{env.JSON_PAYLOAD}} - InvocationType: RequestResponse - LogType: None + with: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + REGION: 'eu-west-1' + FunctionName: runTheNumbers + Payload: ${{env.JSON_PAYLOAD}} + InvocationType: RequestResponse + LogType: None From 1b7983a163e244886c7d99d3fc81599b57688b1b Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 11:27:51 +0100 Subject: [PATCH 04/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 443352a2018..c36e5cfe3ec 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -5,7 +5,7 @@ name: Invoke Lambda function for GitHub example/snippet metrics -on: +on: # yamllint disable-line rule:truthy pull_request: types: - closed From 80f5efe818c96ca815b6abc6fd8ba437e50c4d3c Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 11:38:55 +0100 Subject: [PATCH 05/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index c36e5cfe3ec..41d34dc7e0f 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -12,6 +12,7 @@ on: # yamllint disable-line rule:truthy workflow_dispatch: env: COMMIT: ${{github.event.pull_request.head.sha}} + PR_AUTHOR: ${{ github.event.pull_request.user.login }} jobs: if_merged: name: Generate Repo Statistics @@ -19,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"}" >> $GITHUB_ENV + - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"}, {\"author\" :\"${{ env.PR_AUTHOR }}\"}" >> $GITHUB_ENV - name: Invoke runTheNumbers uses: gagoar/invoke-aws-lambda@master with: From 4ab4c6406a9e88710245a69fb2353611f8685e9b Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 11:44:23 +0100 Subject: [PATCH 06/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 41d34dc7e0f..93f6d80c187 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -1,4 +1,4 @@ -# This workflow executes a Lamdba function that records metrics for each successfully merged PR. +# 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 From 3d39bbeb480a039374f4007a3adfbc8fff7b3e29 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:04:22 +0100 Subject: [PATCH 07/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 93f6d80c187..98903d63f72 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -1,4 +1,4 @@ -# This workflow executes a Lamdba function that records metrics for each merged PR. +# This workflow executes a Lamdba function that records metrics for each successfully merged PR. # # For more information, see: # https://github.com/marketplace/actions/invoke-aws-lambda @@ -19,9 +19,10 @@ jobs: if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: + - name: Convert event Payload - uses: actions/checkout@v2 - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"}, {\"author\" :\"${{ env.PR_AUTHOR }}\"}" >> $GITHUB_ENV - - name: Invoke runTheNumbers + - name: Invoke 'runTheNumbers' Lambda function uses: gagoar/invoke-aws-lambda@master with: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} From 1aba9d133e98dfc159a19b918b74ae1c38129dc8 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:15:31 +0100 Subject: [PATCH 08/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 98903d63f72..ac006c9b758 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -20,8 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Convert event Payload - - uses: actions/checkout@v2 - - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"}, {\"author\" :\"${{ env.PR_AUTHOR }}\"}" >> $GITHUB_ENV + run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"}, {\"author\" :\"${{ env.PR_AUTHOR }}\"}" >> $GITHUB_ENV - name: Invoke 'runTheNumbers' Lambda function uses: gagoar/invoke-aws-lambda@master with: From 5dad632c73ef1f753b4c3f997da189f66074243f Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:17:01 +0100 Subject: [PATCH 09/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index ac006c9b758..b42d341302d 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -1,4 +1,4 @@ -# This workflow executes a Lamdba function that records metrics for each successfully merged PR. +# 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 From b244bacf08264f3183ff48754d09c87f51bb376f Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:27:23 +0100 Subject: [PATCH 10/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index b42d341302d..2820aaf6079 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -6,7 +6,7 @@ name: Invoke Lambda function for GitHub example/snippet metrics on: # yamllint disable-line rule:truthy - pull_request: + pull_request_target: types: - closed workflow_dispatch: From 5e523ed0468796268887a45308f69e06ae574e1c Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:27:48 +0100 Subject: [PATCH 11/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 2820aaf6079..b42d341302d 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -6,7 +6,7 @@ name: Invoke Lambda function for GitHub example/snippet metrics on: # yamllint disable-line rule:truthy - pull_request_target: + pull_request: types: - closed workflow_dispatch: From 72130a3f16d2feae2c98fd16b89af99cdacbcb49 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:28:07 +0100 Subject: [PATCH 12/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index b42d341302d..2820aaf6079 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -6,7 +6,7 @@ name: Invoke Lambda function for GitHub example/snippet metrics on: # yamllint disable-line rule:truthy - pull_request: + pull_request_target: types: - closed workflow_dispatch: From 3e43e4c25dab0741475edd7a3201200a1181247c Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:28:39 +0100 Subject: [PATCH 13/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index b42d341302d..7787302d947 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -1,4 +1,4 @@ -# This workflow executes a Lamdba function that records metrics for each merged PR. +# This workflow executes a Lamdba function that records metrics for each successfully merged PR. # # For more information, see: # https://github.com/marketplace/actions/invoke-aws-lambda @@ -6,7 +6,7 @@ name: Invoke Lambda function for GitHub example/snippet metrics on: # yamllint disable-line rule:truthy - pull_request: + pull_request_target: types: - closed workflow_dispatch: From 274b16529fb9337c390c4266aa4b527943a227fe Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:37:23 +0100 Subject: [PATCH 14/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 7787302d947..2820aaf6079 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -1,4 +1,4 @@ -# This workflow executes a Lamdba function that records metrics for each successfully merged PR. +# 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 From 1878a5fd0f11ca5835fdbac022846e3b10b97ee5 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:02:17 +0100 Subject: [PATCH 15/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 2820aaf6079..dc1687f63ee 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Convert event Payload - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"}, {\"author\" :\"${{ env.PR_AUTHOR }}\"}" >> $GITHUB_ENV + run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"}" >> $GITHUB_ENV - name: Invoke 'runTheNumbers' Lambda function uses: gagoar/invoke-aws-lambda@master with: From 65da411768f8c2b66566bcc9e498442c8d966811 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:04:12 +0100 Subject: [PATCH 16/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index dc1687f63ee..66c5d6d9c67 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -1,4 +1,4 @@ -# This workflow executes a Lamdba function that records metrics for each merged PR. +# This workflow executes a Lamdba function that records metrics for each successfully merged PR. # # For more information, see: # https://github.com/marketplace/actions/invoke-aws-lambda From 223ad36c019529252e3b86d1c86dc7bd1ea85736 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:07:23 +0100 Subject: [PATCH 17/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 66c5d6d9c67..299ef5ac3f2 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -12,7 +12,6 @@ on: # yamllint disable-line rule:truthy workflow_dispatch: env: COMMIT: ${{github.event.pull_request.head.sha}} - PR_AUTHOR: ${{ github.event.pull_request.user.login }} jobs: if_merged: name: Generate Repo Statistics From 22bc74d9042df17f154ada8fe0cd2c5aad3fb4e3 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:08:48 +0100 Subject: [PATCH 18/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 299ef5ac3f2..0b2bae1400f 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -1,4 +1,4 @@ -# This workflow executes a Lamdba function that records metrics for each successfully merged PR. +# 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 From 9ec8cfa6d8529b83b5c3dbf92108505fde215a59 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:17:51 +0100 Subject: [PATCH 19/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 45 +++++++++++++++--------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 0b2bae1400f..4b96a0998ac 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -1,32 +1,31 @@ -# This workflow executes a Lamdba function that records metrics for each merged PR. +# This workflow executes a Lamdba function that records metrics for each successfully merged PR. # # For more information, see: # https://github.com/marketplace/actions/invoke-aws-lambda -name: Invoke Lambda function for GitHub example/snippet metrics - -on: # yamllint disable-line rule:truthy - pull_request_target: - types: - - closed - workflow_dispatch: +name: Invoke runTheNumbers lambda functions +on: + pull_request: + types: + - closed + workflow_dispatch: env: - COMMIT: ${{github.event.pull_request.head.sha}} + COMMIT: ${{github.event.pull_request.head.sha}} + AUTHOR: ${{ github.event.pull_request.user.login }} jobs: - if_merged: - name: Generate Repo Statistics + if_merged: if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - - name: Convert event Payload - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"}" >> $GITHUB_ENV - - name: Invoke 'runTheNumbers' Lambda function - uses: gagoar/invoke-aws-lambda@master - with: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - REGION: 'eu-west-1' - FunctionName: runTheNumbers - Payload: ${{env.JSON_PAYLOAD}} - InvocationType: RequestResponse - LogType: None + - uses: actions/checkout@v2 + - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"},{\"author\" :\"${{ env.AUTHOR }}\"} " >> $GITHUB_ENV + - name: Invoke runTheNumbers + uses: gagoar/invoke-aws-lambda@master + with: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + REGION: 'eu-west-1' + FunctionName: runTheNumbers + Payload: ${{env.JSON_PAYLOAD}} + InvocationType: RequestResponse + LogType: None From f831dfc0964be6ca854b94a26fb76ec52146ef17 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:24:01 +0100 Subject: [PATCH 20/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 4b96a0998ac..ff338e35c19 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -4,24 +4,24 @@ # https://github.com/marketplace/actions/invoke-aws-lambda name: Invoke runTheNumbers lambda functions -on: +on: # yamllint disable-line rule:truthy pull_request: - types: - - closed + types: + - closed workflow_dispatch: env: COMMIT: ${{github.event.pull_request.head.sha}} AUTHOR: ${{ github.event.pull_request.user.login }} jobs: - if_merged: - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"},{\"author\" :\"${{ env.AUTHOR }}\"} " >> $GITHUB_ENV - - name: Invoke runTheNumbers - uses: gagoar/invoke-aws-lambda@master - with: + if_merged: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"},{\"author\" :\"${{ env.AUTHOR }}\"} " >> $GITHUB_ENV + - name: Invoke runTheNumbers + uses: gagoar/invoke-aws-lambda@master + with: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} REGION: 'eu-west-1' From 8063a3427f56fd98681adcc5d708b426bf387b60 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:31:06 +0100 Subject: [PATCH 21/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index ff338e35c19..1593d40577d 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -4,24 +4,24 @@ # https://github.com/marketplace/actions/invoke-aws-lambda name: Invoke runTheNumbers lambda functions -on: # yamllint disable-line rule:truthy +on: # yamllint disable-line rule:truthy pull_request: types: - - closed + - closed workflow_dispatch: env: COMMIT: ${{github.event.pull_request.head.sha}} AUTHOR: ${{ github.event.pull_request.user.login }} jobs: - if_merged: + if_merged: if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"},{\"author\" :\"${{ env.AUTHOR }}\"} " >> $GITHUB_ENV - - name: Invoke runTheNumbers - uses: gagoar/invoke-aws-lambda@master - with: + - uses: actions/checkout@v2 + - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"},{\"author\" :\"${{ env.AUTHOR }}\"} " >> $GITHUB_ENV + - name: Invoke runTheNumbers + uses: gagoar/invoke-aws-lambda@master + with: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} REGION: 'eu-west-1' From 0f3ec0b31458fbea37388828185c4c45b2d8101a Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:32:29 +0100 Subject: [PATCH 22/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 1593d40577d..dd100bc6a70 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -13,10 +13,10 @@ env: COMMIT: ${{github.event.pull_request.head.sha}} AUTHOR: ${{ github.event.pull_request.user.login }} jobs: - if_merged: - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - steps: + if_merged: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: - uses: actions/checkout@v2 - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"},{\"author\" :\"${{ env.AUTHOR }}\"} " >> $GITHUB_ENV - name: Invoke runTheNumbers From 86532c2d4888a392132b27fca1c89d652e6c099c Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:34:01 +0100 Subject: [PATCH 23/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index dd100bc6a70..381a08c8a84 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -14,18 +14,18 @@ env: AUTHOR: ${{ github.event.pull_request.user.login }} jobs: if_merged: - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"},{\"author\" :\"${{ env.AUTHOR }}\"} " >> $GITHUB_ENV - - name: Invoke runTheNumbers - uses: gagoar/invoke-aws-lambda@master - with: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - REGION: 'eu-west-1' - FunctionName: runTheNumbers - Payload: ${{env.JSON_PAYLOAD}} - InvocationType: RequestResponse - LogType: None + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"},{\"author\" :\"${{ env.AUTHOR }}\"} " >> $GITHUB_ENV + - name: Invoke runTheNumbers + uses: gagoar/invoke-aws-lambda@master + with: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + REGION: 'eu-west-1' + FunctionName: runTheNumbers + Payload: ${{env.JSON_PAYLOAD}} + InvocationType: RequestResponse + LogType: None From 79eb82cbbed9ac3c1294d25249b65ddb51379d07 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:36:45 +0100 Subject: [PATCH 24/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 381a08c8a84..63e52540345 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -1,4 +1,4 @@ -# This workflow executes a Lamdba function that records metrics for each successfully merged PR. +# 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 From 3014f4c8d2f7e0a0b21abfb034dc55285c1a4d83 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:42:47 +0100 Subject: [PATCH 25/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 63e52540345..ed682bc8fbc 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -22,10 +22,10 @@ jobs: - name: Invoke runTheNumbers uses: gagoar/invoke-aws-lambda@master with: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - REGION: 'eu-west-1' - FunctionName: runTheNumbers - Payload: ${{env.JSON_PAYLOAD}} - InvocationType: RequestResponse - LogType: None + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + REGION: 'eu-west-1' + FunctionName: runTheNumbers + Payload: ${{env.JSON_PAYLOAD}} + InvocationType: RequestResponse + LogType: None From 4fff82fef07f53f18d4403e8ee9393efe0fe0b7b Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:45:58 +0100 Subject: [PATCH 26/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index ed682bc8fbc..63e52540345 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -22,10 +22,10 @@ jobs: - name: Invoke runTheNumbers uses: gagoar/invoke-aws-lambda@master with: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - REGION: 'eu-west-1' - FunctionName: runTheNumbers - Payload: ${{env.JSON_PAYLOAD}} - InvocationType: RequestResponse - LogType: None + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + REGION: 'eu-west-1' + FunctionName: runTheNumbers + Payload: ${{env.JSON_PAYLOAD}} + InvocationType: RequestResponse + LogType: None From a0515f1fad8c2bc8d9f3fa159eec4fa04aa5a6c1 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:50:17 +0100 Subject: [PATCH 27/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 63e52540345..381a08c8a84 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -1,4 +1,4 @@ -# This workflow executes a Lamdba function that records metrics for each merged PR. +# This workflow executes a Lamdba function that records metrics for each successfully merged PR. # # For more information, see: # https://github.com/marketplace/actions/invoke-aws-lambda From 3e07e453d3dde241f8daf722a02e05caa06d6846 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 14:07:10 +0100 Subject: [PATCH 28/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 381a08c8a84..bb611085439 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -22,10 +22,10 @@ jobs: - name: Invoke runTheNumbers uses: gagoar/invoke-aws-lambda@master with: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - REGION: 'eu-west-1' - FunctionName: runTheNumbers - Payload: ${{env.JSON_PAYLOAD}} - InvocationType: RequestResponse - LogType: None + REGION: 'eu-west-1' + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + FunctionName: runTheNumbers + Payload: ${{env.JSON_PAYLOAD}} + InvocationType: RequestResponse + LogType: None From 3e62e754dc1035caed3fe6d3b5893f2176451323 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 14:09:44 +0100 Subject: [PATCH 29/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index bb611085439..97a12457388 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -1,4 +1,4 @@ -# This workflow executes a Lamdba function that records metrics for each successfully merged PR. +# 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 From cbe2064ae55713bca6985d7fa98a0777b1fbabf5 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 14:19:28 +0100 Subject: [PATCH 30/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 97a12457388..7291441678d 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -1,30 +1,30 @@ -# This workflow executes a Lamdba function that records metrics for each merged PR. +# This workflow executes a Lamdba function that recording metrics for each successfully merged PR. # +# You can adjust the behavior by modifying this file. # For more information, see: # https://github.com/marketplace/actions/invoke-aws-lambda name: Invoke runTheNumbers lambda functions -on: # yamllint disable-line rule:truthy +on: pull_request: - types: - - closed + types: + - closed workflow_dispatch: env: COMMIT: ${{github.event.pull_request.head.sha}} - AUTHOR: ${{ github.event.pull_request.user.login }} jobs: - if_merged: - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"},{\"author\" :\"${{ env.AUTHOR }}\"} " >> $GITHUB_ENV - - name: Invoke runTheNumbers - uses: gagoar/invoke-aws-lambda@master - with: - REGION: 'eu-west-1' + if_merged: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: echo "JSON_PAYLOAD={\"commit\" :\"${{ env.COMMIT }}\"}" >> $GITHUB_ENV + - name: Invoke runTheNumbers + uses: gagoar/invoke-aws-lambda@master + with: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + REGION: 'eu-west-1' FunctionName: runTheNumbers Payload: ${{env.JSON_PAYLOAD}} InvocationType: RequestResponse From 60bb134dc56b63112c0b146ffe68b232e98034e8 Mon Sep 17 00:00:00 2001 From: Brian Murray <40031786+brmur@users.noreply.github.com> Date: Fri, 21 Jun 2024 14:20:52 +0100 Subject: [PATCH 31/31] Update stats_lambda.yml --- .github/workflows/stats_lambda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stats_lambda.yml b/.github/workflows/stats_lambda.yml index 7291441678d..830ea3ae3f5 100644 --- a/.github/workflows/stats_lambda.yml +++ b/.github/workflows/stats_lambda.yml @@ -1,4 +1,4 @@ -# This workflow executes a Lamdba function that recording metrics for each successfully merged PR. +# This workflow executes a Lamdba function that recording metrics for each merged PR. # # You can adjust the behavior by modifying this file. # For more information, see: