Skip to content

Commit

Permalink
The correct command for downloading a gist is gh gist
Browse files Browse the repository at this point in the history
  • Loading branch information
dcalixto committed Dec 16, 2024
1 parent 6b8becb commit dba95ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/clone-stats-and-badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ jobs:
env:
GIST_ID: ${{ secrets.GIST_ID }}
run: |
gh gist get $GIST_ID > previous_clones.json
gh gist view $GIST_ID > previous_clones.json
jq -s '.[0] * .[1]' previous_clones.json latest_clones.json > clone.json
gh gist edit $GIST_ID clone.json
- name: Push Updated Stats
run: |
gh api -X PUT repos/${{ github.repository }}/traffic/clones --input clone.json
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A Crystal shard for creating human-readable URLs and slugs. FriendlyId lets you

[![Crystal Test](https://github.com/dcalixto/friendly_id/actions/workflows/crystal-test.yml/badge.svg?branch=master)](https://github.com/dcalixto/friendly_id/actions/workflows/crystal-test.yml)

![Clone Count](https://img.shields.io/badge/Clones-0-brightgreen)
[![Clone Count](https://github.com/dcalixto/friendly_id/actions/workflows/clone-stats-and-badge.yml/badge.svg?branch=master)](https://github.com/dcalixto/friendly_id/actions/workflows/clone-stats-and-badge.yml)

## Installation

Expand Down

0 comments on commit dba95ba

Please sign in to comment.