-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (36 loc) · 964 Bytes
/
if.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
35
36
37
name: IF
on:
workflow_dispatch:
inputs:
deploy:
required: false
description: ''
type: boolean
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: cat .npmrc
- name: Release-${{ env.GITHUB_RUN_NUMBER }}
if: github.event.inputs.deploy
run: |
echo "${{ github.event.inputs.deploy }}"
echo "*** ${{ github.event.ref }} ***"
- if: ( ! github.event.inputs.deploy )
run: |
echo "Hi ..."
- if: github.event.inputs.deploy == 'true'
run: |
echo "Hi ... true"
- if: github.event.inputs.deploy == 'false'
run: |
echo "Hi ... false"
echo ${{ github.ref }}
if [[ ${{ github.ref }} == 'refs/heads/master' ]]; then
echo 'CMS'
else
echo 'BLT'
fi
- if: success() && (github.ref == 'refs/heads/dev')
run: |
echo ${{ github.ref }}