ci: add the ability to skip ci with commit message [skip ci]

This commit is contained in:
sct
2020-12-12 11:59:15 +00:00
parent 5155a4caf2
commit 5fa37b5913

View File

@@ -26,7 +26,7 @@ jobs:
build_and_push:
name: Build and push Docker image to Docker Hub
needs: test
if: github.ref == 'refs/heads/develop'
if: github.ref == 'refs/heads/develop' && !contains(github.event.head_commit.message, 'skip ci')
runs-on: ubuntu-latest
steps:
- name: checkout