ci: add the ability to skip ci with commit message [skip ci]
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
build_and_push:
|
build_and_push:
|
||||||
name: Build and push Docker image to Docker Hub
|
name: Build and push Docker image to Docker Hub
|
||||||
needs: test
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
|
|||||||
Reference in New Issue
Block a user