-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Travis with GitHub Actions #118
Conversation
I love it! |
I'm a big fan of GitHub actions |
Do you have any creative ideas to improve or simplify the workflow for contributors using GitHub actions? |
When building the actions, I was already thinking about possible optimizations. First of all, I would create branches for recent years and remove everything in the master (current year) that isn't verified. Then, one possible optimization could be to have a separate file for every participant, like this: ---
Name: Acme Corporation
Website: https://acme.corp
Swag:
- stickers
- shirt
Description: "Create one or more merged pull requests."
Details: https://acme.corp/blog/acme-hacktoberfest-2020/ After a small validation, another job adds this to the README in the correct order, so there won't be any need to edit the readme in order to add new participants. Updating the README is pretty simple. All you need is to mark the area, where links will be inserted*, e.g.
and the job will execute a script, that iterates over all yml files and generates the table. * = The advantage is, that you can still modify the README. |
I love the idea to automatically generate the README! What I've been doing is keeping the previous year's entries until a week or so into hacktoberfest. Last year some teams announced swag during hacktoberfest and it was good that the item wasn't removed. I think this works well. |
Well, the plan isn't to remove anything. The plan is to keep the current year's README clean from obsolete entries. By creating branches or releases for every year, nothing will be lost.
I'll try to build something. |
True. My main concern is that some users only visit the website and it would be good to have the unverified items. Perhaps there are two tables. The first with verified items, and the second with unverified.
🎉 💯 🚀 |
Had the same idea. However, I would put it in a "spoiler", so people can expand it, so the focus will stay on the verified ones. |
@benbarth There you go: https://github.com/SoftCreatR/hacktoberfest-swag/tree/auto-readme I'll create a PR tomorrow ;) |
I love it! |
Well, there's more. I'm currently trying to make everything more generic so that there's no need to update everything by hand, every year. To accomplish this, there will be a placeholder for the current year, that is being filled upon the action execution. I've even replaced the logo with a more generic one (I'll ship the PSD with the PNG file): The new structure uses year numbers, so everything within the directory The corresponding action will be automatically executed on Jan 01 of every year at 0.00 UTC, so you'll have a fresh README every year, without the need of manually changing anything ;) |
No description provided.