mirror of
https://tvoygit.ru/Djam/r11_workflows.git
synced 2025-02-23 17:02:46 +00:00
update deploy
This commit is contained in:
parent
5fe61731fc
commit
62bea77c93
1 changed files with 7 additions and 3 deletions
10
action.yml
10
action.yml
|
@ -124,18 +124,22 @@ runs:
|
|||
local type=$3
|
||||
|
||||
if [ "$arch" = "noarch" ]; then
|
||||
url="${{ github.server_url }}/api/packages/${{ github.repository_owner }}/${{ github.event.repository.name }}/generic/r11_rpms/noarch/${file}"
|
||||
url="${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/r11_rpms/noarch/${file}"
|
||||
else
|
||||
url="${{ github.server_url }}/api/packages/${{ github.repository_owner }}/${{ github.event.repository.name }}/generic/r11_rpms/${arch}/${file}"
|
||||
url="${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/r11_rpms/${arch}/${file}"
|
||||
fi
|
||||
|
||||
if [ "$type" = "srpm" ]; then
|
||||
url="${{ github.server_url }}/api/packages/${{ github.repository_owner }}/${{ github.event.repository.name }}/generic/r11_rpms/srpms/${file}"
|
||||
url="${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/r11_rpms/srpms/${file}"
|
||||
fi
|
||||
|
||||
curl --user ${{ github.repository_owner }}:${{ inputs.CI_DEPLOY }} \
|
||||
--upload-file "$file" \
|
||||
"$url"
|
||||
curl --user ${{ github.repository_owner }}:${{ inputs.CI_DEPLOY }} \
|
||||
--upload-file "$file" \
|
||||
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/${{ github.event.repository.name }}/rpm/${file}"
|
||||
|
||||
}
|
||||
|
||||
for dir in SRPMS RPMS/noarch RPMS/*; do
|
||||
|
|
Loading…
Add table
Reference in a new issue