Skip to content

Commit

Permalink
Added guard for file removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Oct 10, 2024
1 parent e8bd4ab commit a1e7de3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/boardCardReleaseLive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,12 @@ jobs:
- name: Remove original changelog file from git
run: |
git rm changelog/new_hw.md
git commit -m "Remove old changelog file after moving it"
git push
FILE_PATH="changelog/new_hw.md"
if [ -f "$FILE_PATH" ]; then
git rm changelog/new_hw.md
git commit -m "Remove old changelog file after moving it"
git push
fi
- name: Commit Changelog to current branch
run: |
Expand Down

0 comments on commit a1e7de3

Please sign in to comment.