1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-28 14:13:28 +00:00

build: fix CI for forks and related docs (#3847)

This commit is contained in:
Alex Chen
2020-01-09 01:27:44 +08:00
committed by GitHub
parent 706da80d88
commit 27c3481ea4
2 changed files with 10 additions and 10 deletions

View File

@@ -104,7 +104,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v1
with:
path: ./src/github.com/${{ github.repository }}
# Checkout into a fixed path to avoid import path problems on go < 1.11
path: ./src/github.com/rclone/rclone
- name: Install Go
uses: actions/setup-go@v1
@@ -201,7 +202,8 @@ jobs:
env:
RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }}
# working-directory: '$(modulePath)'
if: matrix.deploy && github.head_ref == ''
# Deploy binaries if enabled in config && not a PR && not a fork
if: matrix.deploy && github.head_ref == '' && github.repository == 'rclone/rclone'
xgo:
timeout-minutes: 60
@@ -213,7 +215,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v1
with:
path: ./src/github.com/${{ github.repository }}
# Checkout into a fixed path to avoid import path problems on go < 1.11
path: ./src/github.com/rclone/rclone
- name: Set environment variables
shell: bash
@@ -247,4 +250,5 @@ jobs:
make circleci_upload
env:
RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }}
if: github.head_ref == ''
# Upload artifacts if not a PR && not a fork
if: github.head_ref == '' && github.repository == 'rclone/rclone'