-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.26 KB
/
master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
on:
push:
branches:
- master
jobs:
build:
name: Main Pipeline
# https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#about-contexts-and-expressions
if: "!contains(github.event.commits[0].message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- id: checkVersion
name: Check Version
run: |
source .github/workflows/scripts/pipelineHelper.sh
calculateVersion master || exit 1
applyVersionChange master || exit 1
- name: Amend Version
if: steps.checkVersion.outputs.applyVersionChange == 'true'
run: |
git config --global user.name "${GITHUB_RUN_ID}"
git config --global user.email "githubci@noreply.github.com"
source .github/workflows/scripts/pipelineHelper.sh
commitVersionChange master || exit 1
- name: Build and Test
run: echo "Proceeding with normal build."