Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 563 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 563 Bytes

Github Action : Give me a cool random message from this json file

Usage:

Could be refreshing to inject some Larry David into your automated tasks

name: Larry says...

on:
  pull_request:
  push:
    branches:
      - main

jobs:
  check-version:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: johnnybenson/random-message-action@v1
        id: larry
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          JSON_FILE_PATH: larry.json
      - run: echo "${{ steps.larry.outputs.message }}"