Skip to content

Commit

Permalink
ci: delete cover as well after game deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
jy95 committed Sep 7, 2024
1 parent af9ca65 commit cfc1f38
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/issuesAutomatedTasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ jobs:
# Clean up the original file
sudo rm image_file
- name: ✂️ Delete cover
if: ${{ env.OPERATION == 'DELETE_GAME' }}
run: |
# Extract folder name from the JSON environment variable
REQUEST_ID=$(echo $REQUEST | jq -r '.identifierValue')
# Define the folder path variable
FOLDER_PATH="./public/covers/$REQUEST_ID"
# Clean up the original file
sudo rm -rf "$FOLDER_PATH"
- name: 💿 Do actions in database
run: |
node automatedTasks.mjs "$OPERATION" "$REQUEST"
Expand Down

0 comments on commit cfc1f38

Please sign in to comment.