-
Notifications
You must be signed in to change notification settings - Fork 15
run go mod tidy (and set Go 1.15) and gofmt -s in copy workflow #42
Conversation
Nice! We could also consider running |
if ! git diff --quiet; then | ||
git add . | ||
git commit -m "run gofmt -s" | ||
echo "NEEDS_UPDATE=1" >> $GITHUB_ENV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kinda wonder if you could later just ask git "are there any commits ahead of the upstream branch?" instead of using NEEDS_UPDATE. Unrelated to this change though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we're committing to master here, we could just check if HEAD != origin/master. Just need to figure out an elegant way to pull that out of git.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do that in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good :) all LGTM
No description provided.