Skip to content

Commit

Permalink
replaced screwdriver with github env var
Browse files Browse the repository at this point in the history
  • Loading branch information
glebashnik committed Aug 13, 2024
1 parent c21e4d7 commit 5f7670a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/scripts/delete-old-cloudsmith-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/delete-old-versions-in-archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 5f7670a

Please sign in to comment.