Cancel previous automatically?
This commit is contained in:
		
							
								
								
									
										9
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -190,6 +190,15 @@ jobs: | ||||
|         channel: '#notifications' | ||||
|         url: ${{ secrets.SLACK_WEBHOOK }} | ||||
|  | ||||
|   cleanup-prior-runs: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|     - name: Cleanup previous runs on this branch | ||||
|       uses: rokroskar/workflow-run-cleanup-action@v0.2.2 | ||||
|       if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master' && github.repository == 'freqtrade/freqtrade'" | ||||
|       env: | ||||
|         GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||||
|  | ||||
|   deploy: | ||||
|     needs: [ build, build_windows, docs_check ] | ||||
|     runs-on: ubuntu-18.04 | ||||
|   | ||||
| @@ -38,7 +38,7 @@ fi | ||||
| # Show all available images | ||||
| docker images | ||||
|  | ||||
| docker push ${IMAGE_NAME} | ||||
| # docker push ${IMAGE_NAME} | ||||
| if [ $? -ne 0 ]; then | ||||
|     echo "failed pushing to repo" | ||||
|     return 1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user