Skip to content

Commit

Permalink
Update concierge-to-slack.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor authored Sep 27, 2024
1 parent db3532c commit 1cac8ac
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/concierge-to-slack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1cac8ac

Please sign in to comment.