Giter Club home page Giter Club logo

random-advice-workflow's Introduction

Random Advice Workflow

Advice sample


Don't take life too seriously.

How to use

  1. Star this repo πŸ˜›
  2. Go to your repository
  3. Add the following section to your README.md file.
    Just make sure that you use <!-- ADVICE:START --><!-- ADVICE:END --> in your readme.
    The workflow will replace this comment with the amazing advice:
    <!-- ADVICE:START -->
    <!-- ADVICE:END -->
  4. Create a folder named .github and create a workflows folder inside it, if it doesn't exist.
  5. Create a new file named random-advice-workflow.yml with the following contents inside the workflows folder:
name: Advice workflow
on:
  push:
  schedule: # Run workflow automatically
    - cron: '0 * * * *' # Runs every hour, on the hour

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  update-readme-with-quote:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Setup node 14
        uses: actions/setup-node@v2
        with:
          node-version: 14.x
      - name: pull script to get quote
        uses: ashutoshkrris/random-advice-workflow@main
      - name: Commit and push changes
        run: |
          git config --global user.name "ashutoshkrris"
          git config --global user.email "[email protected]"
          git add -A
          git commit -m "New Advice added"
          git push
  1. Commit and wait for it to run automatically or you can also trigger it manually to see the result instantly. To trigger the workflow manually.

Thanks to

  • Madhav Jha for his brilliant quote-workflow that I have been using and which inspired me to make this random-advice-workflow of my own. I got to learn a lot of stuff from reading his code and README.

Bugs

If you are experiencing any bugs, don’t forget to open a new issue.

Liked it?

Hope you liked this project, don't forget to give it a star ⭐.

random-advice-workflow's People

Contributors

ashutoshkrris avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ravana69

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.