Listings Checker #4496
This file contains hidden or 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: Listings Checker | |
| on: | |
| schedule: | |
| - cron: '0 * * * *' # every hour at minute 0 | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| check-listings: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Set up .env file | |
| run: | | |
| echo "COINGECKO_API_KEY=${{ secrets.COINGECKO_API_KEY }}" > .env | |
| - name: Run listings checker | |
| run: python listings_check.py | |
| # bot-authored commit so it doesn't appear on your profile | |
| - name: Commit & push changes | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "chore: update listings status [bot]" | |
| file_pattern: | | |
| listings/perps_listings.json | |
| commit_user_name: "github-actions[bot]" | |
| commit_user_email: "41898282+github-actions[bot]@users.noreply.github.com" | |
| commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" |