move job status to arg
This commit is contained in:
		
							parent
							
								
									e8eab2c120
								
							
						
					
					
						commit
						37fe4fc874
					
				
					 2 changed files with 7 additions and 4 deletions
				
			
		
							
								
								
									
										10
									
								
								action.yml
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								action.yml
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -8,10 +8,10 @@ inputs:
 | 
			
		|||
  topic:
 | 
			
		||||
    description: 'Ntfy topic'
 | 
			
		||||
    required: true
 | 
			
		||||
  status:
 | 
			
		||||
    description: 'Job status. Use ${{ job.status }} for most cases'
 | 
			
		||||
    required: true
 | 
			
		||||
    default: '${{ job.status }}'
 | 
			
		||||
  # status:
 | 
			
		||||
  #   description: 'Job status. Use ${{ job.status }} for most cases'
 | 
			
		||||
  #   required: true
 | 
			
		||||
  #   default: '${{ job.status }}'
 | 
			
		||||
  user:
 | 
			
		||||
    description: 'Username for ntfy server'
 | 
			
		||||
    required: true # should be false, but we'll do authenticated sessions only for now
 | 
			
		||||
| 
						 | 
				
			
			@ -21,3 +21,5 @@ inputs:
 | 
			
		|||
runs:
 | 
			
		||||
  using: 'docker'
 | 
			
		||||
  image: 'Dockerfile'
 | 
			
		||||
  args:
 | 
			
		||||
    - ${{ job.status }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,7 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
env | sort
 | 
			
		||||
echo "status should be: $1"
 | 
			
		||||
#GITHUB_RUN_NUMBER
 | 
			
		||||
# Job status: success/failure/cancelled
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue