mirror of
https://github.com/alex289/CleanArchitecture.git
synced 2025-07-01 19:12:57 +00:00
feat: Add input to cd
This commit is contained in:
parent
6db093103e
commit
d57ef7a78c
8
.github/workflows/dotnet.yml
vendored
8
.github/workflows/dotnet.yml
vendored
@ -2,6 +2,12 @@ name: CI/CD
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
release:
|
||||||
|
description: 'Create a new release'
|
||||||
|
required: true
|
||||||
|
default: 'false'
|
||||||
|
options: ['true', 'false']
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
@ -38,7 +44,7 @@ jobs:
|
|||||||
cd:
|
cd:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: ci
|
needs: ci
|
||||||
if: github.event_name == 'workflow_run'
|
if: github.event_name == 'workflow_dispatch' && ${{ github.event.inputs.release != 'false' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
Loading…
Reference in New Issue
Block a user