Skip to content

Commit

Permalink
test: action to retrieve date (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
franTarkenton authored Jun 16, 2023
1 parent f57dc7d commit 67decc2
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/test_remote_action_dispatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,11 @@ jobs:
steps:
- env:
MESSAGE: ${{ github.event.client_payload.message }}
DATESTR: ${{ github.event.client_payload.idem_key }}
JSONSTR: ${{ github.event.client_payload }}
name: Do Something
run: |
echo Doing Something...
echo Incomming message: $MESSAGE
echo "payload as json: ${{ toJson(github.event.client_payload) }} | jq ."
echo ${{ toJson(github.event.client_payload) }} > payload.json
date=$(cat payload.json | tr -d '\n' | jq .idem_key | tr -d '"')
echo date is $date
jsonstr=$(${{ toJson(github.event.client_payload) }} | tr -d '\n')
echo jsonstr: $jsonstr
$(cat junk.txt | tr -d '\n' | jq .idem_key | tr -d '"')
var=$(${{ toJson(github.event.client_payload) }} | jq .message)
echo "var: $var"
echo "payload non json: ${{ github.event.client_payload }}"
echo Date is: $DATESTR
echo JSONSTR is: $JSONSTR

0 comments on commit 67decc2

Please sign in to comment.