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

Commit 18eab8f

Browse files
committed
Fix secrets
1 parent 42367c3 commit 18eab8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/scarf-push.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ on:
1313
type: string
1414

1515
jobs:
16-
bake:
16+
scarf:
1717
runs-on: ubuntu-latest
1818
steps:
1919
-
2020
name: Push to Scarf
2121
id: push_scarf
2222
run: |
23-
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')
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')
2424
if [ -z "${PACKAGE_UUID}" ]; then
2525
echo "Adding package to Scarf.sh"
26-
curl -vX POST https://scarf.sh/api/v1/organizations/linuxserver-ci/packages -H "Authorization: Bearer ${SCARF_TOKEN}" -H "Content-Type: application/json" \
26+
curl -vX POST https://scarf.sh/api/v1/organizations/linuxserver-ci/packages -H "Authorization: Bearer ${{ secrets.SCARF_TOKEN }}" -H "Content-Type: application/json" \
2727
-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 }}"}'
2828
else
2929
echo "Package already exists on Scarf.sh"

0 commit comments

Comments
 (0)