-
-
Notifications
You must be signed in to change notification settings - Fork 90
31 lines (28 loc) · 1002 Bytes
/
build-deploy.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
name: Build and Deploy
on:
push:
workflow_call:
inputs:
deploy:
description: 'A Boolean indicating the result of deploy request'
required: false
type: boolean
default: false
ref:
description: 'The ref to build on'
required: false
type: string
default: github.ref
jobs:
build:
if: ${{ !contains(github.event.head_commit.message, 'skip ci') || !contains(github.event.head_commit.message, 'ci-push') }}
uses: ./.github/workflows/build.yml
secrets: inherit
deploy:
needs: [build]
if: github.repository_owner == 'LSS-Manager' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || inputs.deploy)
uses: ./.github/workflows/deploy.yml
with:
branch: ${{ needs.build.outputs.branch }}
ref: ${{ inputs.ref }}
secrets: inherit