Skip to content

edit .yml

edit .yml #2

Workflow file for this run

# when run, this starts GitHub Actions workflow in repo GSAS-II-buildtools
name: Trigger on GSASII-buildtools
on: workflow_dispatch
# workflow_dispatch:
# inputs:
# target_service:
# description: 'Run on GSAS-II-buildtools'
# required: true
# target_version:
# description: 'v0.0.1'
# required: true
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger Workflow in GSAS-II-buildtools
run: |
# Set the required variables
repo_owner="AdvancedPhotonSource"
repo_name="GSAS-II-buildtools"
event_type="trigger-workflow"
# service="${{ github.event.inputs.target_service }}"
# version="${{ github.event.inputs.target_version }}"
service="Run invoked by GSAS-II repo"
version="TBD"
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \

Check failure on line 32 in .github/workflows/TriggerRemote.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/TriggerRemote.yml

Invalid workflow file

You have an error in your yaml syntax on line 32
-H "Authorization: Bearer ${{ secrets.PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
-d "{\"event_type\": \"$event_type\", \"client_payload\": {\"service\": \"$service\", \"version\": \"$version\", \"unit\": false, \"integration\": true}}"