Only run build CI on develop.

This commit is contained in:
Doug
2021-11-08 18:27:46 +00:00
parent 4b90e613f5
commit 371385ae3b
3 changed files with 4 additions and 9 deletions
+1 -6
View File
@@ -4,7 +4,6 @@ on:
# Triggers the workflow on any pull request and push to develop
push:
branches: [ develop ]
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@@ -18,11 +17,7 @@ jobs:
name: Build
runs-on: macos-11
concurrency:
# When running on develop, use the sha to allow all runs of this workflow to run concurrently.
# Otherwise only allow a single run of this workflow on each branch, automatically cancelling older runs.
group: ${{ github.ref == 'refs/heads/develop' && format('build-develop-{0}', github.sha) || format('build-{0}', github.ref) }}
cancel-in-progress: true
# Concurrency group not needed as this workflow only runs on develop which we always want to test.
steps:
- uses: actions/checkout@v2
+2 -3
View File
@@ -18,9 +18,8 @@ jobs:
runs-on: macos-11
concurrency:
# When running on develop, use the sha to allow all runs of this workflow to run concurrently.
# Otherwise only allow a single run of this workflow on each branch, automatically cancelling older runs.
group: ${{ github.ref == 'refs/heads/develop' && format('alpha-develop-{0}', github.sha) || format('alpha-{0}', github.ref) }}
# Only allow a single run of this workflow on each branch, automatically cancelling older runs.
group: alpha-${{ github.head_ref }}
cancel-in-progress: true
steps: