GithubHelp home page GithubHelp logo

arndom / octo-my-readme-workflow Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 1.0 11.69 MB

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.

Home Page: https://github.com/marketplace/actions/octo-my-readme

License: MIT License

JavaScript 100.00%
utility github-actions github-profile-readme workflow activity github-profile readme profile-readme github-workflow octocat

octo-my-readme-workflow's Introduction

Preview

preview

How to use

  1. Star this repo ๐Ÿ˜‰
  2. Go to your special repository(repo with name the same as git username).
  3. Create a folder named .github and create a workflows folder inside it, if it doesn't exist.
  4. 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
  1. Commit and trigger it manually, after the run, a my-ocoto-lang.png file will be created in your repository.
  2. You can display it in your README.md like this:
<p> Here is arndom's ocoto-lang:</p>
<img src= "./my-octo-lang.png" width="400px"/>

The result

Here is arndom's ocoto-lang:

Supported Languages

Currently this supports the following languages:

  • C
  • C++
  • C#
  • CSS
  • GO
  • Haskell
  • HTML
  • Java
  • JavaScript
  • Kotlin
  • Lua
  • php
  • Python
  • R
  • Ruby
  • Swift
  • Typescript
    More coming soon...

Special thanks to

  • All users of the workflow
  • Dev.to for the github actions hackathon that inspired me to build this
  • @gautamkrishnar & @theboi for writing awesome action code that helped me find my way around.
  • @Rahnard for the styling of the octocat
  • @abranhe for the programming logos package

Liked it?

Hope you like this, Don't forget to give this a star โญ

octo-my-readme-workflow's People

Contributors

arndom avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

meinbauernhof

octo-my-readme-workflow's Issues

HTTP Status 403

Wasup. I tried to use it following the README but didn't work for me

I'm getting this:

Failed:  RequestError [HttpError]: Resource not accessible by integration
    at /home/runner/work/_actions/arndom/octo-my-readme-workflow/v1/node_modules/@octokit/request/dist-node/index.js:86:21
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async /home/runner/work/_actions/arndom/octo-my-readme-workflow/v1/index.js:53:9 {
  status: 403,
  response: {
    url: 'https://api.github.com/repos/devLucasOAK/my-github-workflows/contents/my-octo-lang.png',
    status: 403,
    ...

I'm kinda new with this, but I'm guessing this is related to permissions to the target repo.
Related: actions/first-interaction#10

Another issue is that is getting my top language wrong:

Your top language is Java
java is a supported language โœ…

But my unique language used in the repo is Python.

You can check my logs here:
https://github.com/devLucasOAK/my-github-workflows/actions/runs/4102396265

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.