My Workflow
Octo-my-readme is a github action that takes the github octocat and combines it with your most used language in all your repos then displays it in your README.md
or wherever you place it.
Submission Category:
Wacky Wildcards
Link to Code and YAML File
arndom / octo-my-readme-workflow
Combines the GitHub Octocat with the logo of the most used language in your repositories which can then be displayed in your special README or wherever.
Preview
How to use
- Star this repo 😉
- Go to your special repository(repo with name the same as git username).
- Create a folder named
.github
and create aworkflows
folder inside it, if it doesn't exist. - Create a new file named
octo-lang.yml
with the following contents inside the workflow folder:
name: Octo my README
on:
# schedule: # Run workflow automatically
# - cron: '0 * * * *' # Runs every hour, on the hour
workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the Github Actions Workflow page directly
jobs:
get_lang_gen_octo:
runs-on: ubuntu-latest
name: Get Language & Generate Ocoto-lang
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get most used language then generate ocoto lang
id: octo-lang
uses: arndom/octo-my-readme-workflow@v1
- Commit and trigger it manually, after the run, a
my-ocoto-lang.png
file…
name: Octo my README
on:
# schedule: # Run workflow automatically
# - cron: '0 * * * *' # Runs every hour, on the hour
workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the Github Actions Workflow page directly
jobs:
get_lang_gen_octo:
runs-on: ubuntu-latest
name: Get Language & Generate Ocoto-lang
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get most used language then generate ocoto lang
id: octo-lang
uses: arndom/octo-my-readme-workflow@v1
Additional Resources / Info
This is my first github action and I was stuck for a bit realizing my idea but thanks to existing workflows; blog-post-workflow & github-update-readme and the styling of the octocat by my friend; @Rahnard I was able to make this.
Hope you like it 🤗, Don't forget to leave a star ⭐
Top comments (2)
Oh, this is fun! Nice work. You should add a description, link and topics to your repo, too. I can see you’ve used the action on your own GH Profile, looks cool.
Thanks, I'll be sure do add those
👌