Skip to content

Instantly share code, notes, and snippets.

@ethomson
Created December 13, 2019 00:45
Show Gist options
  • Save ethomson/d1756c60ada050a30f86da44bf1e5f29 to your computer and use it in GitHub Desktop.
Save ethomson/d1756c60ada050a30f86da44bf1e5f29 to your computer and use it in GitHub Desktop.
name: Show Popularity
on: [push]
jobs:
build:
name: Show Popularity
runs-on: ubuntu-latest
steps:
- name: Show Popularity
run: |
STARS=$(jq --raw-output .repository.stargazers "${{ github.event_path }}")
FORKS=$(jq --raw-output .repository.forks "${{ github.event_path }}")
echo "${{ github.repository }} has $STARS stars and $FORKS forks"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment