adding if condition

This commit is contained in:
Daniel Dimitrov 2024-08-25 17:11:56 +03:00 committed by GitHub
parent 37cb1aed40
commit 1317ea59eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,8 +1,11 @@
name: Build & push
on:
push:
branches: [ main ]
pull_request:
types: [labeled]
tags: ['CI:Build']
branches:
- master
workflow_dispatch:
@ -14,6 +17,7 @@ jobs:
push-app-image:
runs-on: ubuntu-latest
environment: production
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Build')
steps:
- uses: actions/checkout@v3