Skip to content

Commit

Permalink
Fix bug if no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Nov 20, 2023
1 parent 8cb463e commit 05e0806
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions bin/update-issues
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ CSV.open("tile-attribution.csv", "w") do |csv|
end
end

puts "Add tile-attribution.csv to git"
git.add("tile-attribution.csv")
if git.status.changed.include?("tile-attribution.csv")
puts "Add tile-attribution.csv to git"
git.add("tile-attribution.csv")

puts "Commit changes to #{branch}..."
git.commit("Update tile-attribution.csv")
puts "Commit changes to #{branch}..."
git.commit("Update tile-attribution.csv")

puts "Push branch #{branch}..."
git.push("origin", branch)
puts "Push branch #{branch}..."
git.push("origin", branch)
end

0 comments on commit 05e0806

Please sign in to comment.