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
1 changed files with 5 additions and 3 deletions

View File

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