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 required: true
gitea_only: gitea_only:
description: 'Esegui solo sync release body su Gitea (salta build e GitHub release)' description: 'Esegui solo sync release body su Gitea (salta build e GitHub release)'
type: boolean
required: false required: false
default: 'false' default: false
permissions: permissions:
contents: write contents: write
jobs: jobs:
build: build:
if: ${{ !(github.event_name == 'workflow_dispatch' && inputs.gitea_only == 'true') }} if: ${{ !(github.event_name == 'workflow_dispatch' && inputs.gitea_only) }}
runs-on: windows-latest runs-on: windows-latest
strategy: strategy:
fail-fast: true fail-fast: true
@@ -74,7 +75,7 @@ jobs:
path: '*.zip' path: '*.zip'
build-linux: 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 runs-on: ubuntu-latest
strategy: strategy:
fail-fast: true fail-fast: true
@@ -120,7 +121,7 @@ jobs:
if-no-files-found: error if-no-files-found: error
publish: publish:
if: ${{ !(github.event_name == 'workflow_dispatch' && inputs.gitea_only == 'true') }} if: ${{ !(github.event_name == 'workflow_dispatch' && inputs.gitea_only) }}
needs: [build, build-linux] needs: [build, build-linux]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -255,7 +256,7 @@ jobs:
PY PY
sync-gitea-only: 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 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6