github actions: specify own user agent for all curl commands

This commit is contained in:
Leonid Pliushch 2021-10-08 14:05:25 +03:00
parent df3a651aa8
commit 5272d228e5
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with 4 additions and 0 deletions

View File

@ -169,6 +169,7 @@ jobs:
curl \
--silent \
--user "${{ secrets.APTLY_API_AUTH }}" \
--user-agent "Termux-Packages/1.0 (https://github.com/termux/termux-packages)" \
--request DELETE \
--write-out "|%{http_code}" \
https://packages.termux.org/aptly-api/files/${REPOSITORY_NAME}-${{ github.sha }}
@ -189,6 +190,7 @@ jobs:
curl \
--silent \
--user "${{ secrets.APTLY_API_AUTH }}" \
--user-agent "Termux-Packages/1.0 (https://github.com/termux/termux-packages)" \
--request POST \
--form file=@${filename} \
--write-out "|%{http_code}" \
@ -229,6 +231,7 @@ jobs:
curl \
--silent \
--user "${{ secrets.APTLY_API_AUTH }}" \
--user-agent "Termux-Packages/1.0 (https://github.com/termux/termux-packages)" \
--request POST \
--write-out "|%{http_code}" \
https://packages.termux.org/aptly-api/repos/${REPOSITORY_NAME}/file/${REPOSITORY_NAME}-${{ github.sha }} || true
@ -269,6 +272,7 @@ jobs:
curl \
--silent \
--user "${{ secrets.APTLY_API_AUTH }}" \
--user-agent "Termux-Packages/1.0 (https://github.com/termux/termux-packages)" \
--header 'Content-Type: application/json' \
--request PUT \
--data '{"Signing": {"Passphrase": "${{ secrets.GPG_PASSPHRASE }}"}}' \