From 1cac8accb5bc7eef7bed13524571bfc04dd858ee Mon Sep 17 00:00:00 2001 From: George Taylor Date: Fri, 27 Sep 2024 18:09:12 +0100 Subject: [PATCH] Update concierge-to-slack.yml --- .github/workflows/concierge-to-slack.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/concierge-to-slack.yml b/.github/workflows/concierge-to-slack.yml index a23b553..6d6ff42 100644 --- a/.github/workflows/concierge-to-slack.yml +++ b/.github/workflows/concierge-to-slack.yml @@ -28,17 +28,17 @@ jobs: GSHEET_CLIENT_EMAIL: ${{ secrets.GSHEET_CLIENT_EMAIL }} GSHEET_PRIVATE_KEY: ${{ secrets.GSHEET_PRIVATE_KEY }} - - name: dump results - env: - # the output of the action can be found in ${{ steps.update_worksheet.outputs.results }} - RESULTS: ${{ steps.headers.outputs.results }} + - name: Extract required cell(s) + # env: + # # the output of the action can be found in ${{ steps.update_worksheet.outputs.results }} + # RESULTS: ${{ steps.headers.outputs.results }} run: | # get todays column - col=$(echo "$RESULTS" | jq -r '.results[0].result.formatted[0] | to_entries | map(select(.value == "${{ steps.date.outputs.date }}")) | .[].key') - echo "$col" + col=$(echo "${{ steps.headers.outputs.results }}" | jq -r '.results[0].result.formatted[0] | to_entries | map(select(.value == "${{ steps.date.outputs.date }}")) | .[].key') + # echo "$col" # get name of today's concierge concierge=$(echo "$RESULTS" | jq -r --arg col "$col" '.results[0].result.formatted[1][$col]') - echo "$concierge" + # echo "$concierge" - name: Slack notification uses: slackapi/slack-github-action@v1.27.0