This commit is contained in:
parent
fb973bb209
commit
36b0fcdb83
2 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ for file in $(find . -name '*.apk' -type f | sed -e 's,./,,'); do
|
|||
# remove old package
|
||||
curl \
|
||||
--fail \
|
||||
-H "Authorization: token ${{secrets.PACKAGE_TOKEN}}" \
|
||||
-H "Authorization: token $1" \
|
||||
-X DELETE \
|
||||
"https://msrd0.dev/api/packages/msrd0/alpine/3.19/forgejo-2174/$file" \
|
||||
|| true
|
||||
|
@ -39,7 +39,7 @@ for file in $(find . -name '*.apk' -type f | sed -e 's,./,,'); do
|
|||
# upload new package
|
||||
curl \
|
||||
--fail \
|
||||
-H "Authorization: token ${{secrets.PACKAGE_TOKEN}}" \
|
||||
-H "Authorization: token $1" \
|
||||
-T "$file" \
|
||||
"https://msrd0.dev/api/packages/msrd0/alpine/3.19/forgejo-2174"
|
||||
done
|
||||
|
|
|
@ -11,4 +11,4 @@ jobs:
|
|||
uses: docker://alpine
|
||||
with:
|
||||
entrypoint: ash
|
||||
args: -c ./.gitea/workflows/alpine.sh
|
||||
args: -c './.gitea/workflows/alpine.sh ${{secrets.PACKAGE_TOKEN}}'
|
||||
|
|
Loading…
Reference in a new issue