mirror of
				https://github.com/inventree/inventree-website.git
				synced 2025-11-04 07:25:46 +00:00 
			
		
		
		
	test a few options
This commit is contained in:
		
							
								
								
									
										41
									
								
								.github/workflows/get_stats.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								.github/workflows/get_stats.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,41 @@
 | 
			
		||||
name: Get stats
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
    inputs:
 | 
			
		||||
      logLevel:
 | 
			
		||||
        description: 'Log level'
 | 
			
		||||
        required: true
 | 
			
		||||
        default: 'warning' 
 | 
			
		||||
        type: choice
 | 
			
		||||
        options:
 | 
			
		||||
        - info
 | 
			
		||||
        - warning
 | 
			
		||||
        - debug 
 | 
			
		||||
      print_tags:
 | 
			
		||||
        description: 'True to print to STDOUT'
 | 
			
		||||
        required: true 
 | 
			
		||||
        type: boolean 
 | 
			
		||||
      tags:
 | 
			
		||||
        description: 'Test scenario tags'
 | 
			
		||||
        required: true 
 | 
			
		||||
        type: string
 | 
			
		||||
      environment:
 | 
			
		||||
        description: 'Environment to run tests against'
 | 
			
		||||
        type: environment
 | 
			
		||||
        required: true 
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
      - name: Set selected color
 | 
			
		||||
        run: echo '::set-output name=SELECTED_COLOR::green'
 | 
			
		||||
        id: random-color-generator
 | 
			
		||||
      - name: Docker stats
 | 
			
		||||
        run: |
 | 
			
		||||
          curl -s https://hub.docker.com/v2/repositories/inventree/inventree/ | jq -r ".pull_count"
 | 
			
		||||
        id: docker-pulls
 | 
			
		||||
		Reference in New Issue
	
	Block a user