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
|
# remove old package
|
||||||
curl \
|
curl \
|
||||||
--fail \
|
--fail \
|
||||||
-H "Authorization: token ${{secrets.PACKAGE_TOKEN}}" \
|
-H "Authorization: token $1" \
|
||||||
-X DELETE \
|
-X DELETE \
|
||||||
"https://msrd0.dev/api/packages/msrd0/alpine/3.19/forgejo-2174/$file" \
|
"https://msrd0.dev/api/packages/msrd0/alpine/3.19/forgejo-2174/$file" \
|
||||||
|| true
|
|| true
|
||||||
|
@ -39,7 +39,7 @@ for file in $(find . -name '*.apk' -type f | sed -e 's,./,,'); do
|
||||||
# upload new package
|
# upload new package
|
||||||
curl \
|
curl \
|
||||||
--fail \
|
--fail \
|
||||||
-H "Authorization: token ${{secrets.PACKAGE_TOKEN}}" \
|
-H "Authorization: token $1" \
|
||||||
-T "$file" \
|
-T "$file" \
|
||||||
"https://msrd0.dev/api/packages/msrd0/alpine/3.19/forgejo-2174"
|
"https://msrd0.dev/api/packages/msrd0/alpine/3.19/forgejo-2174"
|
||||||
done
|
done
|
||||||
|
|
|
@ -11,4 +11,4 @@ jobs:
|
||||||
uses: docker://alpine
|
uses: docker://alpine
|
||||||
with:
|
with:
|
||||||
entrypoint: ash
|
entrypoint: ash
|
||||||
args: -c ./.gitea/workflows/alpine.sh
|
args: -c './.gitea/workflows/alpine.sh ${{secrets.PACKAGE_TOKEN}}'
|
||||||
|
|
Loading…
Reference in a new issue