Github actions: don't run when [skip ci]
This commit is contained in:
parent
0aa0859d83
commit
5c59b8fd5e
1 changed files with 7 additions and 0 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
|
@ -7,6 +7,7 @@ on: [push
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
scratch:
|
scratch:
|
||||||
|
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: Git checkout
|
||||||
|
|
@ -20,6 +21,7 @@ jobs:
|
||||||
echo "Scratch"
|
echo "Scratch"
|
||||||
|
|
||||||
jvm:
|
jvm:
|
||||||
|
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||||
# ubuntu 18.04 comes with lein + java8 installed
|
# ubuntu 18.04 comes with lein + java8 installed
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -97,6 +99,7 @@ jobs:
|
||||||
path: babashka-${{ steps.babashka-version.outputs.version }}-reflection.json
|
path: babashka-${{ steps.babashka-version.outputs.version }}-reflection.json
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
|
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||||
needs: [jvm]
|
needs: [jvm]
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -176,6 +179,7 @@ jobs:
|
||||||
name: babashka-${{ steps.babashka-version.outputs.version }}-linux-amd64.zip
|
name: babashka-${{ steps.babashka-version.outputs.version }}-linux-amd64.zip
|
||||||
|
|
||||||
linux-static:
|
linux-static:
|
||||||
|
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||||
needs: [jvm]
|
needs: [jvm]
|
||||||
runs-on: ubuntu-16.04
|
runs-on: ubuntu-16.04
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -257,6 +261,7 @@ jobs:
|
||||||
name: babashka-${{ steps.babashka-version.outputs.version }}-linux-static-amd64.zip
|
name: babashka-${{ steps.babashka-version.outputs.version }}-linux-static-amd64.zip
|
||||||
|
|
||||||
mac:
|
mac:
|
||||||
|
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||||
needs: [jvm]
|
needs: [jvm]
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -325,6 +330,7 @@ jobs:
|
||||||
name: babashka-${{ steps.babashka-version.outputs.version }}-macos-amd64.zip
|
name: babashka-${{ steps.babashka-version.outputs.version }}-macos-amd64.zip
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||||
needs: [jvm, linux, linux-static, mac]
|
needs: [jvm, linux, linux-static, mac]
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
|
@ -352,6 +358,7 @@ jobs:
|
||||||
.github/script/deploy
|
.github/script/deploy
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
|
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||||
needs: [jvm, linux, linux-static, mac]
|
needs: [jvm, linux, linux-static, mac]
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue