github actions: specify own user agent for all curl commands
This commit is contained in:
parent
df3a651aa8
commit
5272d228e5
|
@ -169,6 +169,7 @@ jobs:
|
||||||
curl \
|
curl \
|
||||||
--silent \
|
--silent \
|
||||||
--user "${{ secrets.APTLY_API_AUTH }}" \
|
--user "${{ secrets.APTLY_API_AUTH }}" \
|
||||||
|
--user-agent "Termux-Packages/1.0 (https://github.com/termux/termux-packages)" \
|
||||||
--request DELETE \
|
--request DELETE \
|
||||||
--write-out "|%{http_code}" \
|
--write-out "|%{http_code}" \
|
||||||
https://packages.termux.org/aptly-api/files/${REPOSITORY_NAME}-${{ github.sha }}
|
https://packages.termux.org/aptly-api/files/${REPOSITORY_NAME}-${{ github.sha }}
|
||||||
|
@ -189,6 +190,7 @@ jobs:
|
||||||
curl \
|
curl \
|
||||||
--silent \
|
--silent \
|
||||||
--user "${{ secrets.APTLY_API_AUTH }}" \
|
--user "${{ secrets.APTLY_API_AUTH }}" \
|
||||||
|
--user-agent "Termux-Packages/1.0 (https://github.com/termux/termux-packages)" \
|
||||||
--request POST \
|
--request POST \
|
||||||
--form file=@${filename} \
|
--form file=@${filename} \
|
||||||
--write-out "|%{http_code}" \
|
--write-out "|%{http_code}" \
|
||||||
|
@ -229,6 +231,7 @@ jobs:
|
||||||
curl \
|
curl \
|
||||||
--silent \
|
--silent \
|
||||||
--user "${{ secrets.APTLY_API_AUTH }}" \
|
--user "${{ secrets.APTLY_API_AUTH }}" \
|
||||||
|
--user-agent "Termux-Packages/1.0 (https://github.com/termux/termux-packages)" \
|
||||||
--request POST \
|
--request POST \
|
||||||
--write-out "|%{http_code}" \
|
--write-out "|%{http_code}" \
|
||||||
https://packages.termux.org/aptly-api/repos/${REPOSITORY_NAME}/file/${REPOSITORY_NAME}-${{ github.sha }} || true
|
https://packages.termux.org/aptly-api/repos/${REPOSITORY_NAME}/file/${REPOSITORY_NAME}-${{ github.sha }} || true
|
||||||
|
@ -269,6 +272,7 @@ jobs:
|
||||||
curl \
|
curl \
|
||||||
--silent \
|
--silent \
|
||||||
--user "${{ secrets.APTLY_API_AUTH }}" \
|
--user "${{ secrets.APTLY_API_AUTH }}" \
|
||||||
|
--user-agent "Termux-Packages/1.0 (https://github.com/termux/termux-packages)" \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
--request PUT \
|
--request PUT \
|
||||||
--data '{"Signing": {"Passphrase": "${{ secrets.GPG_PASSPHRASE }}"}}' \
|
--data '{"Signing": {"Passphrase": "${{ secrets.GPG_PASSPHRASE }}"}}' \
|
||||||
|
|
Loading…
Reference in New Issue