HackerNews action
jun

jun @junlow

About: A design-minded front-end developer focused on building beautiful interfaces & experiences. Loves being multidisciplinary, problem-solving, and learning new things.

Joined:
Oct 9, 2019

HackerNews action

Publish Date: Sep 16 '20
6 0

My Workflow

Get top 5 hackernews daily with GitHub action 🗞

name: 🗞 Daily Top HackerNews

on:
  schedule:
    - cron: '0 9 * * *' # Every day at 9am
  push:
    branches: [ master ]

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

    - name: daily-top-hackernews
      id: hackernews
      uses: ./ # Uses an action in the root directory
      with:
        run: echo "${{ steps.hackernews.outputs.msg }}"
        news: 5
Enter fullscreen mode Exit fullscreen mode

Submission Category:

Wacky Wildcards

Yaml File or Link to Code

GitHub logo jun-low / hackernews-action

🗞 Get daily top 5 hacker news with GitHub action

🗞 hackernews-action

Get top 5 daily hacker news with GitHub action.

Usage

Get top 5 hacker news everyday.

name: 🗞 Daily Top HackerNews

on:
  schedule:
    - cron: '0 9 * * *' # Every day at 9am
  push:
    branches: [ master ]

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

    - name: daily-top-hackernews
      id: hackernews
      uses: ./ # Uses an action in the root directory
      with:
        run: echo "${{ steps.hackernews.outputs.msg }}"
        news: 5

License

MIT






Comments 0 total

    Add comment