mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 15:30:06 +08:00
build: Only run event-based workflow scripts under rclone repo with manual override
This updates the actions to only run event-based workflow scripts under the rclone repository only and not forks. It also adds the ability to manually trigger a build from a branch in rclone repository and forks. Fixes #5272
This commit is contained in:
parent
f4068d406b
commit
964088affa
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
@ -12,9 +12,15 @@ on:
|
|||
tags:
|
||||
- '*'
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
manual:
|
||||
required: true
|
||||
default: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: ${{ github.repository == 'rclone/rclone' || github.event.inputs.manual }}
|
||||
timeout-minutes: 60
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
@ -214,6 +220,7 @@ jobs:
|
|||
if: matrix.deploy && github.head_ref == '' && github.repository == 'rclone/rclone'
|
||||
|
||||
android:
|
||||
if: ${{ github.repository == 'rclone/rclone' || github.event.inputs.manual }}
|
||||
timeout-minutes: 30
|
||||
name: "android-all"
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -7,6 +7,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
if: github.repository == 'rclone/rclone'
|
||||
runs-on: ubuntu-latest
|
||||
name: Build image job
|
||||
steps:
|
||||
|
|
|
@ -6,6 +6,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
if: github.repository == 'rclone/rclone'
|
||||
runs-on: ubuntu-latest
|
||||
name: Build image job
|
||||
steps:
|
||||
|
|
Loading…
Reference in New Issue
Block a user