ci: make gitea_only workflow_dispatch input boolean

This commit is contained in:
2026-05-02 22:29:05 +02:00
parent f973bf3107
commit da6bf4fd04
+6 -5
View File
@@ -15,15 +15,16 @@ on:
required: true
gitea_only:
description: 'Esegui solo sync release body su Gitea (salta build e GitHub release)'
type: boolean
required: false
default: 'false'
default: false
permissions:
contents: write
jobs:
build:
if: ${{ !(github.event_name == 'workflow_dispatch' && inputs.gitea_only == 'true') }}
if: ${{ !(github.event_name == 'workflow_dispatch' && inputs.gitea_only) }}
runs-on: windows-latest
strategy:
fail-fast: true
@@ -74,7 +75,7 @@ jobs:
path: '*.zip'
build-linux:
if: ${{ !(github.event_name == 'workflow_dispatch' && inputs.gitea_only == 'true') }}
if: ${{ !(github.event_name == 'workflow_dispatch' && inputs.gitea_only) }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
@@ -120,7 +121,7 @@ jobs:
if-no-files-found: error
publish:
if: ${{ !(github.event_name == 'workflow_dispatch' && inputs.gitea_only == 'true') }}
if: ${{ !(github.event_name == 'workflow_dispatch' && inputs.gitea_only) }}
needs: [build, build-linux]
runs-on: ubuntu-latest
steps:
@@ -255,7 +256,7 @@ jobs:
PY
sync-gitea-only:
if: ${{ github.event_name == 'workflow_dispatch' && inputs.gitea_only == 'true' }}
if: ${{ github.event_name == 'workflow_dispatch' && inputs.gitea_only }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6