Cancel previous automatically?

This commit is contained in:
Matthias 2020-05-25 15:21:14 +02:00
parent 4fbd2deb37
commit 571d61de84
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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