forked from github/plane
checking push
This commit is contained in:
parent
6ca3df6c7b
commit
b2e0d4e6d2
17
.github/workflows/build-branch.yml
vendored
17
.github/workflows/build-branch.yml
vendored
@ -11,25 +11,14 @@ on:
|
|||||||
- dev/mg-branch-build-2
|
- dev/mg-branch-build-2
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- opened
|
|
||||||
- synchronize
|
|
||||||
- closed
|
- closed
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
logLevel:
|
|
||||||
description: 'Log level'
|
|
||||||
required: true
|
|
||||||
default: 'warning'
|
|
||||||
tags:
|
|
||||||
description: 'Dev/QA Builds'
|
|
||||||
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TARGET_BRANCH: ''
|
TARGET_BRANCH: ''
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
branch_build_and_push:
|
branch_build_and_push:
|
||||||
if: ${{ (github.event_name == 'pull_request') && (( github.event.action =='closed' && github.event.pull_request.merged == true) || ( github.event.action =='opened'|| github.event.action =='synchronize'))}}
|
if: ${{ (github.event_name == 'push') || (github.event_name == 'pull_request' && github.event.action =='closed' && github.event.pull_request.merged == true) }}
|
||||||
name: Build-Push Web/Space/API/Proxy Docker Image
|
name: Build-Push Web/Space/API/Proxy Docker Image
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
@ -42,8 +31,8 @@ jobs:
|
|||||||
run: echo "TARGET_BRANCH=${{ github.event.pull_request.base.ref }}" >> $GITHUB_ENV
|
run: echo "TARGET_BRANCH=${{ github.event.pull_request.base.ref }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set Target Branch Name on other than PR close
|
- name: Set Target Branch Name on other than PR close
|
||||||
if: ${{ github.event.action !='closed' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
run: echo "TARGET_BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
|
run: echo "TARGET_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- uses: ASzc/change-string-case-action@v2
|
- uses: ASzc/change-string-case-action@v2
|
||||||
id: gh_branch_upper_lower
|
id: gh_branch_upper_lower
|
||||||
|
Loading…
Reference in New Issue
Block a user