Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Commit

Permalink
Fixing unnecessary full builds on PR to develop (#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdanilo authored Mar 8, 2021
1 parent fef2e4f commit 6a3845e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/gui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ jobs:
run: node ./run dist --skip-version-validation --target macos
if: startsWith(matrix.os,'macos')
if: >-
!(contains(github.event.head_commit.message,'[ci build]') ||
github.base_ref == 'develop' || github.base_ref == 'unstable' ||
github.base_ref == 'stable' || github.ref == 'refs/heads/unstable' ||
github.ref == 'refs/heads/stable')
!(contains(github.event.head_commit.message,'[ci build]') || github.ref ==
'develop' || github.base_ref == 'unstable' || github.base_ref == 'stable'
|| github.ref == 'refs/heads/unstable' || github.ref ==
'refs/heads/stable')
build:
name: Build
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -374,9 +374,9 @@ jobs:
dist/client/enso-linux-${{fromJson(steps.changelog.outputs.content).version}}.AppImage.sha256
if: startsWith(matrix.os,'ubuntu')
if: >-
contains(github.event.head_commit.message,'[ci build]') || github.base_ref
== 'develop' || github.base_ref == 'unstable' || github.base_ref ==
'stable' || github.ref == 'refs/heads/unstable' || github.ref ==
contains(github.event.head_commit.message,'[ci build]') || github.ref ==
'develop' || github.base_ref == 'unstable' || github.base_ref == 'stable'
|| github.ref == 'refs/heads/unstable' || github.ref ==
'refs/heads/stable'
release_to_github:
name: GitHub Release
Expand Down
6 changes: 4 additions & 2 deletions build/workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,10 @@ let releaseCondition = `github.ref == 'refs/heads/unstable' || github.ref == 're

/// Make a full build if one of the following conditions is true:
/// 1. There was a `FLAG_FORCE_CI_BUILD` flag set in the commit message (see its docs for more info).
/// 2. It was a pull request to 'develop', 'unstable', or 'stable'.
let buildCondition = `contains(github.event.head_commit.message,'${FLAG_FORCE_CI_BUILD}') || github.base_ref == 'develop' || github.base_ref == 'unstable' || github.base_ref == 'stable' || ${releaseCondition}`
/// 2. It was a pull request to the 'unstable', or the 'stable' branch.
/// 3. It was a commit to the 'develop' branch.
/// Otherwise, perform a simplified (faster) build only.
let buildCondition = `contains(github.event.head_commit.message,'${FLAG_FORCE_CI_BUILD}') || github.ref == 'develop' || github.base_ref == 'unstable' || github.base_ref == 'stable' || ${releaseCondition}`

let workflow = {
name : "GUI CI",
Expand Down

0 comments on commit 6a3845e

Please sign in to comment.