build: fix condition for manual workflow run

See #5275
This commit is contained in:
albertony 2023-01-22 00:54:02 +01:00
parent b9d9f9edb0
commit 5b82576dbf

View File

@ -15,12 +15,14 @@ on:
workflow_dispatch:
inputs:
manual:
description: Manual run (bypass default conditions)
type: boolean
required: true
default: true
jobs:
build:
if: ${{ github.repository == 'rclone/rclone' || github.event.inputs.manual }}
if: ${{ github.repository == 'rclone/rclone' || github.event.inputs.manual == 'true' }}
timeout-minutes: 60
strategy:
fail-fast: false
@ -218,7 +220,7 @@ jobs:
if: matrix.deploy && github.head_ref == '' && github.repository == 'rclone/rclone'
lint:
if: ${{ github.repository == 'rclone/rclone' || github.event.inputs.manual }}
if: ${{ github.repository == 'rclone/rclone' || github.event.inputs.manual == 'true' }}
timeout-minutes: 30
name: "lint"
runs-on: ubuntu-latest
@ -247,7 +249,7 @@ jobs:
run: govulncheck ./...
android:
if: ${{ github.repository == 'rclone/rclone' || github.event.inputs.manual }}
if: ${{ github.repository == 'rclone/rclone' || github.event.inputs.manual == 'true' }}
timeout-minutes: 30
name: "android-all"
runs-on: ubuntu-latest