mirror of
				https://github.com/inventree/inventree-website.git
				synced 2025-11-04 07:25:46 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			617 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			617 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: Get stats
 | 
						|
 | 
						|
on:
 | 
						|
  workflow_dispatch:
 | 
						|
  schedule:
 | 
						|
    - cron: "0 0 * * *"
 | 
						|
 | 
						|
jobs:
 | 
						|
  build:
 | 
						|
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
    permissions: {}
 | 
						|
    steps:
 | 
						|
      - uses: actions/checkout@v2
 | 
						|
        with:
 | 
						|
         token: ${{ secrets.BOT_PAT }}
 | 
						|
      - name: Get Stats
 | 
						|
        run: python .github/get_stats.py
 | 
						|
        env:
 | 
						|
          CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
 | 
						|
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
						|
      - uses: stefanzweifel/git-auto-commit-action@v4
 | 
						|
        with:
 | 
						|
          commit_message: "[Bot] Updated the stats"
 | 
						|
          commit_author: Bot <actions@github.com>
 | 
						|
          branch: main
 |