diff --git a/.github/scripts/delete-old-cloudsmith-artifacts.sh b/.github/scripts/delete-old-cloudsmith-artifacts.sh index 9d04befeb347..e9d928b0b891 100755 --- a/.github/scripts/delete-old-cloudsmith-artifacts.sh +++ b/.github/scripts/delete-old-cloudsmith-artifacts.sh @@ -30,9 +30,7 @@ done echo "Deleting the following RPMs:" cat $RPMS_TO_DELETE -echo $CLOUDSMITH_API_CREDS - -if [[ -n $SCREWDRIVER ]] && [[ -z $SD_PULL_REQUEST ]]; then +if [[ -n $GITHUB ]] && [[ -z $SD_PULL_REQUEST ]]; then for RPMID in $(cat $RPMS_TO_DELETE); do curl -sLf -u "$CLOUDSMITH_API_CREDS" -X DELETE \ --header 'accept: application/json' \ diff --git a/.github/workflows/delete-old-versions-in-archive.yml b/.github/workflows/delete-old-versions-in-archive.yml index 7e012ec2e786..1c82b30b232b 100644 --- a/.github/workflows/delete-old-versions-in-archive.yml +++ b/.github/workflows/delete-old-versions-in-archive.yml @@ -36,7 +36,7 @@ jobs: - name: Run script in Fedora Docker container run: | docker run --rm \ - -e SCREWDRIVER=1 \ + -e GITHUB=1 \ -e SD_PULL_REQUEST=$([[ "${{ github.event_name }}" == "pull_request" ]] && echo 1 || echo "") \ -e CLOUDSMITH_API_CREDS=${{ secrets.CLOUDSMITH_API_CREDS }} \ -v ${{ github.workspace }}:/workspace -w /workspace \