Skip to content

Commit

Permalink
Add branch tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilshan-H committed Nov 29, 2023
1 parent 79ccbea commit 0f2b223
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/convert_ics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "dilshan-h"
csv_branch_name="csv-files-$year"
git pull origin main
git checkout -b "$csv_branch_name"
python converters/icalendar_to_csv.py "$file"
git add "csv/$year.csv"
git commit -m "Convert $year.ics to $year.csv [skip ci]"
git push origin "$csv_branch_name"
git push -u origin "$csv_branch_name"
gh pr create --title "Convert $year.ics to $year.csv" --body "[Automated PR] This PR contains the changes after converting $year.ics to $year.csv." --base main --head "$csv_branch_name"
else
echo "CSV file for $year.ics already exists. Skipping CSV conversion."
Expand Down

0 comments on commit 0f2b223

Please sign in to comment.