Skip to content

Commit

Permalink
Update nightly.yml (microsoft#50)
Browse files Browse the repository at this point in the history
Fix JSON formatting of request to trigger Nightly AzDevOpsBuild
  • Loading branch information
MattB-msft authored Jan 16, 2025
1 parent d19baf4 commit 0168ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
response=$(curl -v -X POST \
-H "Authorization: Bearer ${{ steps.getToken.outputs.token }}" \
-H "Content-Type: application/json" \
-d '{"resources": {"repositories": {"self": {"refName": "refs/heads/main"}}},"variables": {"ProjectBranch": {"value": "${{ github.head_ref || github.ref_name }}"' \
-d '{"resources": {"repositories": {"self": {"refName": "refs/heads/main"}}},"variables": {"ProjectBranch": {"value": "${{ github.head_ref || github.ref_name }}"}}}' \
${{ vars.AZDEVOPS_URL }}/_apis/pipelines/${{ env.AzDevOpsPipelineId }}/runs?api-version=7.1)
echo $BRANCH_NAME
echo $response
Expand Down

0 comments on commit 0168ab6

Please sign in to comment.