Skip to content

Commit

Permalink
Handle deb stable delivery conditionally 2210 (#508)
Browse files Browse the repository at this point in the history
* fix(ci): handle debian stable delivery conditionally 2210

* Update debian delivery url
  • Loading branch information
tuntoja authored and bouda1 committed Mar 14, 2023
1 parent 3bfaedf commit 5ebee69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/delivery/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ runs:
echo "[DEBUG] - Suprepo: $SUBREPO"
echo "[DEBUG] - Version: $VERSION"
if [[ "${{ env.extfile }}" == "deb" ]] ; then
if [[ "${{ env.extfile }}" == "deb" ]] && [[ "$SUBREPO" == "stable" ]]; then
curl -u "${{ inputs.repos_username }}":"${{ inputs.repos_password }}" -H "Content-Type: multipart/form-data" --data-binary "@./$FILE" https://apt.centreon.com/repository/22.10/
elif [[ "${{ env.extfile }}" == "deb" ]] && [[ "$SUBREPO" != "stable" ]]; then
curl -u "${{ inputs.repos_username }}":"${{ inputs.repos_password }}" -H "Content-Type: multipart/form-data" --data-binary "@./$FILE" https://apt.centreon.com/repository/22.10-$SUBREPO/
else
DISTRIB="${{ inputs.distrib }}"
Expand Down

0 comments on commit 5ebee69

Please sign in to comment.