Skip to content

Commit

Permalink
Update copy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mefinity authored May 25, 2024
1 parent fcdfc60 commit 79aaac9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/copy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ jobs:
FILE_NAME=$(date +"%Y-%m-%d")
cp domains "$FILE_NAME"
- name: Remove existing file if exists
run: |
FILE_NAME=$(date +"%Y-%m-%d")
if [ -f "$FILE_NAME" ]; then
rm "$FILE_NAME"
fi
- name: Checkout or create 2024 branch
run: |
git fetch origin
Expand All @@ -46,11 +39,12 @@ jobs:
git checkout -b 2024
fi
- name: Add and commit new file
- name: Copy and commit new file
run: |
FILE_NAME=$(date +"%Y-%m-%d")
cp domains "$FILE_NAME"
git add "$FILE_NAME"
git commit -m "Add $FILE_NAME"
git commit -m "Update $FILE_NAME" --allow-empty
- name: Push changes to 2024 branch
run: |
Expand Down

0 comments on commit 79aaac9

Please sign in to comment.