Skip to content

Commit

Permalink
Publish pipeline improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
g-nardiello authored Sep 20, 2024
1 parent 00a6a3b commit cf91026
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/chronostratigrafie-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ jobs:
PUT_URL: https://dev-graphdbgps.swissgeol.ch/publish/chronostratigraphy_swisstopo_public_core?context=https://lexic.swissgeol.ch/Chronostratigraphy/
TOKEN: ${{ secrets.LEXIC_CONTROLLED_VOCABULARIES_GRAPHDB_GPS_TOKEN }}
run: |
curl -X PUT -T $FILE_PATH -H "Authorization: Bearer $TOKEN" $PUT_URL
response=$(curl -w "%{http_code}" -X PUT -T $FILE_PATH -H "Authorization: Bearer $TOKEN" $PUT_URL -o response.txt)
if [[ "$response" -ge 200 && "$response" -lt 300 ]]; then
echo "Upload successful: HTTP $response"
else
echo "Upload failed: HTTP $response"
exit 1
fi

0 comments on commit cf91026

Please sign in to comment.