[CI] Disable Discord webhook when CI run is cancelled. (#24104)
* Disable Discord webhook when CI run is cancelled. * Include link to binaries in Discord output.
This commit is contained in:
		
							parent
							
								
									c58c5fa8fa
								
							
						
					
					
						commit
						4d4d7b76b0
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -172,10 +172,10 @@ jobs:
 | 
			
		|||
            targets-${{ inputs.keymap }}
 | 
			
		||||
 | 
			
		||||
      - name: 'CI Discord Notification'
 | 
			
		||||
        if: always()
 | 
			
		||||
        if: always() && !cancelled()
 | 
			
		||||
        working-directory: util/ci/
 | 
			
		||||
        env:
 | 
			
		||||
          DISCORD_WEBHOOK: ${{ secrets.CI_DISCORD_WEBHOOK }}
 | 
			
		||||
        run: |
 | 
			
		||||
          python3 -m pip install -r requirements.txt
 | 
			
		||||
          python3 ./discord-results.py --branch ${{ inputs.branch || github.ref_name }} --keymap ${{ inputs.keymap }} --url ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
 | 
			
		||||
          python3 ./discord-results.py --branch ${{ inputs.branch || github.ref_name }} --sha $(git rev-parse HEAD) --keymap ${{ inputs.keymap }} --url ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue