GitXplorerGitXplorer
b

have-a-nice-day

public
5 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
3fc055e3f77fb44fd4c154281fc16e89d96d13c4

Tuesday wishes

bbswck committed 5 months ago
Verified
b7633c22b00a01eac61ae6f77244e3f01582d363

Monday wishes

bbswck committed 5 months ago
Verified
641f37c1b8dddc083d5bb587ef1fbcb16f341234

Sunday wishes

bbswck committed 5 months ago
Verified
ead7f59901896cc1840ba20de27d1968fff1fc82

Saturday wishes

bbswck committed 5 months ago
Verified
a5cb82d051acfdb89e52e802e0955e5303ddbfbe

Friday wishes

bbswck committed 5 months ago
Verified
2bb22628beb7e5f44fbbfb7bd8e9837c8d1b58cf

Thursday wishes

bbswck committed 5 months ago

README

The README file for this repository.

have-a-nice-day

Hey GitHub!

This repository has everyday releases where I wish you a nice day. I do them manually.

Feel free to silence this repo in 👁 Watch options if you don't want to receive release notifications in your GitHub dashboard.

And, most importantly, have a nice day!
~ @bswck

How I make everyday releases

First, I write down my wishes in the proper file. I commit the file and push it, tag the whole revision and release it.

echo "Hello world, have a great day!" > "$(date -I).md"
git add -A
git commit -m "$(date +%A) wishes"
git push

# Sometimes I need to overwrite a tag if I make a typo, so I use the `-f` flag by default
git tag -sfa "$(date -I)" -m "$(date +%A) wishes"
git push --tags

gh release create "$(date -I)" --notes "$(cat "$(date -I).md")"

The whole routine can be semi-automated:

motd_write() {
  echo "$1" > "$(date -I).md"
  git add -A
  git commit -m "$(date +%A) wishes"
  git push
}

motd_tag() {
  # Sometimes I need to overwrite a tag if I make a typo, so I use the `-f` flag by default
  git tag -sfa "$(date -I)" -m "$(date +%A) wishes"
  git push --tags
}

motd_release() {
  gh release create "$(date -I)" --notes "$(cat "$(date -I).md")"
}

motd() {
  motd_write "$1" && motd_tag && motd_release
}

# Example:
motd "Have a nice $(date +%A) everyone! 🚀"