parent
							
								
									0b2009984e
								
							
						
					
					
						commit
						6334410560
					
				
					 1 changed files with 20 additions and 18 deletions
				
			
		|  | @ -15,22 +15,24 @@ jobs: | |||
|       - name: List files in the repository | ||||
|         run: | | ||||
|           ls ${{ github.workspace }} | ||||
|       - run: true | ||||
|       - run: false | ||||
|       - run: echo "🍏 This job's status is ${{ job.status }}." | ||||
|       - name: Success Notification | ||||
|         if: success() | ||||
|         run: | | ||||
|                curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \ | ||||
|                -H 'Title: Job Succeeded. ${{ github.repository }}/${{ github.ref }}' \ | ||||
|                -H "Tags: +1" \ | ||||
|                -d 'Job succeeded. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \ | ||||
|                '${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}' | ||||
|       - name: Failure Notification | ||||
|         if: failure() | ||||
|         run: | | ||||
|                curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \ | ||||
|                -H "Priority: high" \ | ||||
|                -H 'Title: Job FAILED. ${{ github.repository }}/${{ github.ref }}' \ | ||||
|                -H "Tags: warning" \ | ||||
|                -d 'Job failed. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \ | ||||
|                '${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}' | ||||
|       - name: notify | ||||
|         uses: lobo/actions_test/.gitea/workflows/notifcation.yaml@Notify | ||||
|       # - name: Success Notification | ||||
|       #   if: success() | ||||
|       #   run: | | ||||
|       #          curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \ | ||||
|       #          -H 'Title: Job Succeeded. ${{ github.repository }}/${{ github.ref }}' \ | ||||
|       #          -H "Tags: +1" \ | ||||
|       #          -d 'Job succeeded. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \ | ||||
|       #          '${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}' | ||||
|       # - name: Failure Notification | ||||
|       #   if: failure() | ||||
|       #   run: | | ||||
|       #          curl -u '${{ secrets.NTFY_USER }}:${{ secrets.NTFY_PASSWORD }}' \ | ||||
|       #          -H "Priority: high" \ | ||||
|       #          -H 'Title: Job FAILED. ${{ github.repository }}/${{ github.ref }}' \ | ||||
|       #          -H "Tags: warning" \ | ||||
|       #          -d 'Job failed. See '$GITHUB_SERVER_URL'/${{ github.repository }}/actions/runs/${{ github.run_number }} for details' \ | ||||
|       #          '${{ secrets.NTFY_HOST }}${{ secrets.NTFY_TOPIC }}' | ||||
		Loading…
	
	Add table
		
		Reference in a new issue