Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit a79d24e

Browse files
committed
Try different way to present secret
1 parent 18eab8f commit a79d24e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/scarf-push.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ jobs:
1919
-
2020
name: Push to Scarf
2121
id: push_scarf
22+
env:
23+
SCARF_TOKEN: ${{ secrets.SCARF_TOKEN }}
2224
run: |
23-
PACKAGE_UUID=$(curl -s -H "Authorization: Bearer ${{ secrets.SCARF_TOKEN }}" https://scarf.sh/api/v1/organizations/linuxserver-ci/packages | jq -r '.[] | select(.name=="${{ inputs.repo_owner }}/${{ inputs.app_name }}") | .uuid')
25+
PACKAGE_UUID=$(curl -s -H "Authorization: Bearer ${SCARF_TOKEN}" https://scarf.sh/api/v1/organizations/linuxserver-ci/packages | jq -r '.[] | select(.name=="${{ inputs.repo_owner }}/${{ inputs.app_name }}") | .uuid')
2426
if [ -z "${PACKAGE_UUID}" ]; then
2527
echo "Adding package to Scarf.sh"
26-
curl -vX POST https://scarf.sh/api/v1/organizations/linuxserver-ci/packages -H "Authorization: Bearer ${{ secrets.SCARF_TOKEN }}" -H "Content-Type: application/json" \
28+
curl -vX POST https://scarf.sh/api/v1/organizations/linuxserver-ci/packages -H "Authorization: Bearer ${SCARF_TOKEN}" -H "Content-Type: application/json" \
2729
-d '{"name":"${{ inputs.repo_owner }}/${{ inputs.app_name }}","shortDescription":"example description","libraryType":"docker","website":"https://github.com/${{ inputs.repo_owner }}/docker-${{ inputs.app_name }}","backendUrl":"https://ghcr.io/${{ inputs.repo_owner }}/${{ inputs.app_name }}","publicUrl":"https://lscr.io/${{ inputs.repo_owner }}/${{ inputs.app_name }}"}'
2830
else
2931
echo "Package already exists on Scarf.sh"

0 commit comments

Comments
 (0)