Skip to content

Commit

Permalink
fix 400 and go QA next step
Browse files Browse the repository at this point in the history
  • Loading branch information
boly38 committed Nov 1, 2024
1 parent d1ec246 commit 3c10d01
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish_sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
run: |
# Disable -e temporarily to capture the curl exit status manually
set +e
response=$(curl -f -X POST \
response=$(curl -sf -X POST \
-H "Authorization: token ${{ secrets.PAT_TOKEN }}" \
-H "Accept: application/vnd.github.everest-preview+json" \
${{ env.REPO_API_URL }}/dispatches \
Expand All @@ -97,7 +97,7 @@ jobs:
"label": "${{ env.LABEL }}",
"label_fr": "${{ env.LABEL_FR }}",
"description": "${{ env.DESCRIPTION }}",
"description_fr": ""${{ env.DESCRIPTION_FR }}",
"description_fr": "${{ env.DESCRIPTION_FR }}",
"note": "${{ env.REPO_WEB_URL }}/releases/tag/${{ env.VERSION }}",
"download": "${{ env.REPO_WEB_URL }}/releases/download/${{ env.VERSION }}/package.readme.txt"
}
Expand All @@ -108,9 +108,11 @@ jobs:
set -e
# Check for errors
if [ $exit_status -ne 0 ]; then
echo "Error: curl command failed with status $exit_status and response:$response"
echo "Error: curl command failed with status $exit_status"
exit 1
fi
# Output the curl response
echo "$response"
- name: 3) Waiting for push-new-version workflow completion
id: wait_for_completion
Expand Down

0 comments on commit 3c10d01

Please sign in to comment.