Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored Nov 25, 2023
1 parent e3f961f commit f0735ac
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ jobs:
- name: Set up repository_dispatch inputs
if: github.event_name == 'repository_dispatch'
run: |
DEPLOY_BRANCH=$(echo '${{ fromJson(github.event.client_payload.inputs).branch }}')
DEPLOY_ACTION=$(echo '${{ fromJson(github.event.client_payload.inputs).action }}')
echo "DEPLOY_BRANCH=$DEPLOY_BRANCH" >> $GITHUB_ENV
echo "DEPLOY_ACTION=$DEPLOY_ACTION" >> $GITHUB_ENV
echo "Received Payload:"
echo "${{ toJson(github.event.client_payload) }}"
echo "DEPLOY_BRANCH=${{ fromJson(github.event.client_payload.inputs).branch }}" >> $GITHUB_ENV
echo "DEPLOY_ACTION=${{ fromJson(github.event.client_payload.inputs).action }}" >> $GITHUB_ENV
- name: Checkout (full)
if: ${{env.DEPLOY_ACTION == 'deploy'}}
Expand Down

0 comments on commit f0735ac

Please sign in to comment.