Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
book-open

GitHub Action

Sinhala Quote Of The Day

1.0.2

Sinhala Quote Of The Day

book-open

Sinhala Quote Of The Day

Updates README with a Sinhala quote

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Sinhala Quote Of The Day

uses: dinushchathurya/sinhala-quotes-github-action@1.0.2

Learn more about this action in dinushchathurya/sinhala-quotes-github-action

Choose a version

💬 Quote of the Day: "සියල්ල මිලදීගත්තද, ඔබට කාලය මිලදී ගත නොහැක. එමනිසා කාලය අපතේ නොයවන්න"

Sinhala Quote of the day

Example usage

  1. Add the following lines in the file where quote will be updated.
<!-- start quote --> 

<!--- end quote -->
  1. Create Workflow
name: Update README with Sinhala Quote

on:
  workflow_dispatch:
  schedule:
  - cron: "0 0 * * *" # triggers every midnight

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Check out repo
      uses: actions/checkout@v2

    - name: Sinhala Quote Of The Day
      uses: dinushchathurya/sinhala-quotes-github-action@1.0.1
    
    - name: Commit and push update
      run: |-
        git config --global user.email "sinhalaquotes@action.com"
        git config --global user.name "Quote-Bot"
        git add -A
        git commit -m "Added Sinhala QOTD from GitHub Actions"
        git push