0
0
mirror of https://github.com/alex289/CleanArchitecture.git synced 2025-06-30 02:31:08 +00:00

feat: Add input to cd

This commit is contained in:
alex289 2023-12-06 10:13:24 +01:00
parent 6db093103e
commit d57ef7a78c
No known key found for this signature in database
GPG Key ID: 573F77CD2D87F863

View File

@ -2,6 +2,12 @@ name: CI/CD
on:
workflow_dispatch:
inputs:
release:
description: 'Create a new release'
required: true
default: 'false'
options: ['true', 'false']
push:
branches: [ main ]
pull_request:
@ -38,7 +44,7 @@ jobs:
cd:
runs-on: ubuntu-latest
needs: ci
if: github.event_name == 'workflow_run'
if: github.event_name == 'workflow_dispatch' && ${{ github.event.inputs.release != 'false' }}
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3