Fetch GitHub AI models catalog and uploads it as an artifact for daily tracking and analysis.
At DJHQ, we rely heavily on GitHub’s AI models.
One fine day, without warning, a few of our trusted models vanished from the listings.
- 📊 Fetches complete GitHub AI models catalog
- 📝 Creates simplified summary with key model information
- 📋 Generates markdown report for easy viewing
- 💾 Uploads all data as downloadable artifacts
- ⏰ Perfect for scheduled workflows to track model changes
name: Track GitHub Models
on:
  schedule:
    - cron: '0 3 * * *'  # Daily at 3 AM UTC
jobs:
  track-models:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: datajourneyhq/list-github-models@RELEASE
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}- uses: datajourneyhq/list-github-models@RELEASE
  with:
    github-token: ${{ secrets.GITHUB_TOKEN }}
    artifact-name: 'my-custom-models-catalog'| Input | Description | Required | Default | 
|---|---|---|---|
| github-token | GitHub token for API access | No | ${{ github.token }} | 
| artifact-name | Name for the uploaded artifact | No | github-models-catalog | 
| Output | Description | 
|---|---|
| artifact-name | Name of the uploaded artifact | 
The action creates an artifact containing:
- github-models.json- Complete models catalog from GitHub API
- github-models-mini.json- Simplified version with id, name, and summary
- models-report.md- Human-readable markdown report
The action generates three files that are uploaded as artifacts:
Complete models catalog from GitHub API containing full model details including specifications, capabilities, and metadata.
Simplified JSON with essential model information:
Human-readable markdown report with model listings:
name: Daily GitHub Models Tracking
on:
  workflow_dispatch:
  schedule:
    - cron: '0 3 * * *'
permissions:
  contents: read
jobs:
  track-models:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        
    - name: Set date
      run: echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
    - name: Fetch GitHub Models
      uses: datajourneyhq/list-github-models@RELEASE
      with:
        artifact-name: 'models-${{ env.DATE }}'DataJourney HQ
- GitHub: @datajourneyhq

