Skip to content

Commit 82a4a26

Browse files
committed
dedicated input json file for github context
1 parent f8bb06b commit 82a4a26

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/django--deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ jobs:
6464
needs: [setup]
6565
if: ${{ always() && !cancelled() && needs.setup.result == 'success' }}
6666
steps:
67-
- env:
68-
GH_CTX: '{ "github_context": ${{ toJson(github) }} }'
69-
run: |
67+
- run: echo '{ "github_context": ${{ toJSON(github) }} }' > github-context.json
68+
- run: cat github-context.json
69+
- run: |
7070
run-ansible-playbook.sh playbooks/deploy-docker-compose.yaml \
7171
-e '"input_website_fqdn=${{ needs.setup.outputs.website_fqdn }}"' \
72-
-e "'"$GH_CTX"'"
72+
-e @github-context.json
7373
7474
deploy-notify:
7575
name: Deployment Notification

0 commit comments

Comments
 (0)