mirror of
https://github.com/rclone/rclone.git
synced 2025-04-16 16:18:52 +08:00
Merge 8902f7d33bda84dec20a527c901fc3bb5f2c27e8 into 0b9671313b14ffe839ecbd7dd2ae5ac7f6f05db8
This commit is contained in:
commit
e6e2209f0f
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
@ -20,6 +20,39 @@ on:
|
||||
default: true
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
if: github.event_name == 'release'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '>=1.24.0-rc.1'
|
||||
check-latest: true
|
||||
|
||||
- name: Install required packages
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y make pandoc
|
||||
|
||||
- name: Build doc
|
||||
shell: bash
|
||||
run: |
|
||||
make doc
|
||||
if [[ $(git status --porcelain) ]]; then
|
||||
echo "Docs are not up to date. Please run 'make doc' and commit the changes."
|
||||
echo "Please check the following files:"
|
||||
git status --porcelain
|
||||
exit 1
|
||||
else
|
||||
echo "Docs are up to date."
|
||||
fi
|
||||
build:
|
||||
if: inputs.manual || (github.repository == 'rclone/rclone' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name))
|
||||
timeout-minutes: 60
|
||||
|
Loading…
x
Reference in New Issue
Block a user