Skip to content

Commit

Permalink
Update demo_deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CallumWalley authored Sep 27, 2024
1 parent 7cb15e4 commit aaa3b7c
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/demo_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@ env:
permissions: write-all
jobs:
demo-deploy:
# continue-on-error: true
continue-on-error: true
name: Trigger test deployments
runs-on: ubuntu-latest
steps:
- name: Trigger Workflow in Another Repository
run: |
set -x
set -o xtrace
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${TARGET_OWNER}/${TARGET_REPO}/dispatches \
-d "{\"event_type\":\"deploy\",\"client_payload\":{\"targets\":\"${GITHUB_REPOSITORY}:${HEAD}\", \"use-cache\":\"true\"}}"
# - name: Trigger Workflow in Another Repository
# run: |
# set -x
# set -o xtrace
# curl -L \
# -X POST \
# -H "Accept: application/vnd.github+json" \
# -H "Authorization: Bearer ${{ secrets.PAT }}" \
# -H "X-GitHub-Api-Version: 2022-11-28" \
# https://api.github.com/repos/${TARGET_OWNER}/${TARGET_REPO}/dispatches \
# -d "{\"event_type\":\"deploy\",\"client_payload\":{\"targets\":\"${GITHUB_REPOSITORY}:${HEAD}\", \"use-cache\":\"true\"}}"

# This would be better if it worked
# - name: Run 'deploy.yml' Workflow
# uses: convictional/trigger-workflow-and-wait@v1.6.1
# with:
# owner: ${TARGET_OWNER}
# repo: ${TARGET_REPO}
# github_token: ${{ secrets.PAT }}
# workflow_file_name: deploy.yml
# client_payload: '{\"targets\":\"${GITHUB_REPOSITORY}:${HEAD}\", \"use-cache\":\"true\"}'
- name: Run 'deploy.yml' Workflow
uses: convictional/trigger-workflow-and-wait@v1.6.1
with:
owner: ${TARGET_OWNER}
repo: ${TARGET_REPO}
github_token: ${{ secrets.PAT }}
workflow_file_name: deploy.yml
client_payload: '{\"targets\":\"${GITHUB_REPOSITORY}:${HEAD}\", \"use-cache\":\"true\"}'
# - name: Wait for Workflow Action
# run: |
# curl -L \
Expand Down

0 comments on commit aaa3b7c

Please sign in to comment.