Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commit message directives for CI workflow #2101

Merged
merged 1 commit into from
Nov 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#
# CI build that assembles artifacts and runs tests.
# If validation is successful this workflow releases from the main dev branch.
#
# - skipping CI: add [skip ci] to the commit message
# - skipping release: add [skip release] to the commit message
#
name: CI

on:
Expand All @@ -14,6 +21,7 @@ jobs:
#
build:
runs-on: ubuntu-latest
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"

# Definition of the build matrix
strategy:
Expand Down Expand Up @@ -61,10 +69,15 @@ jobs:
# Release job, only for pushes to the main development branch
#
release:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
needs: [build] # build job must pass before we can release
if: github.event_name == 'push' && github.ref == 'refs/heads/release/3.x'

if: github.event_name == 'push'
&& github.ref == 'refs/heads/release/3.x'
&& !contains(toJSON(github.event.commits.*.message), '[skip release]')

steps:

- name: Check out code
uses: actions/checkout@v2 # https://github.com/actions/checkout
with:
Expand Down