Skip to content

Instantly share code, notes, and snippets.

@christeredvartsen
Last active November 14, 2019 14:17
Show Gist options
  • Save christeredvartsen/9ee1cb95c33e1019dc3802e9f6a2455a to your computer and use it in GitHub Desktop.
Save christeredvartsen/9ee1cb95c33e1019dc3802e9f6a2455a to your computer and use it in GitHub Desktop.
Check rate limit in an action
name: Do some stuff
on: [push]
jobs:
test:
name: Do some stuff
runs-on: ubuntu-latest
steps:
- name: Check API rate limit
run: |
curl -s "https://api.github.com/rate_limit" -H "Authorization: token $GITHUB_TOKEN"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment