Skip to content

Commit

Permalink
fix chris_url
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Oct 1, 2024
1 parent da1de90 commit 83f5f1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ jobs:
if: github.ref_type == 'tag'
run: |
auth='${{ secrets.CHRISPROJECT_USERNAME }}:${{ secrets.CHRISPROJECT_PASSWORD }}'
chris_url='https://cube.chrisproject.org/api/v1/'
admin_url="$(curl -sSf -u "$auth" '${{ chris_url }}' -H 'Accept: application/json' | jq -r '.collection_links.admin')"
chris_url="https://cube.chrisproject.org/api/v1/"
admin_url="$(curl -sSf -u "$auth" $chris_url -H 'Accept: application/json' | jq -r '.collection_links.admin')"
compute_names="NERC"
if [ "$admin_url" = "null" ]; then
echo "::error ::${{ secrets.CHRISPROJECT_USERNAME }} is not an admin for ${{ chris_url }}"
echo "::error ::${{ secrets.CHRISPROJECT_USERNAME }} is not an admin for $chris_url"
exit 1
fi
Expand Down

0 comments on commit 83f5f1d

Please sign in to comment.