Last active
November 14, 2019 14:17
-
-
Save christeredvartsen/9ee1cb95c33e1019dc3802e9f6a2455a to your computer and use it in GitHub Desktop.
Check rate limit in an action
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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