Skip to content

Commit

Permalink
modified: rclone/action.yml
Browse files Browse the repository at this point in the history
	modified:   rclone/entrypoint.sh
  • Loading branch information
ss-o committed Sep 28, 2022
1 parent 55bb69e commit 00128a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 8 additions & 2 deletions actions/rclone/action.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: "GitHub Action - rclone"
description: "Commits any changed files and pushes the result back to origin branch."
description: "Run rclone for files and directories from different cloud storage providers"
author: "z-shell"
branding:
icon: "arrow-up"
color: "green"
inputs:
config-file:
description: "Set custom location for rclone configuration file"
required: false
config:
description: "Configuration for rclone"
required: true
Expand All @@ -15,11 +18,14 @@ inputs:
args:
description: "Argumets to pass for rclone"
required: true

outputs:
rclone:
description: "The output of rclone"
runs:
using: "docker"
image: "Dockerfile"
env:
CONFIG_FILE: ${{ inputs.config-file }}
RCLONE_CONF: ${{ inputs.config }}
DEBUG: ${{ inputs.debug }}
args:
Expand Down
5 changes: 4 additions & 1 deletion actions/rclone/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

# Run rclone for files and directories from different cloud storage providers.

if [[ $DEBUG == "false" ]]; then
# Carry on, but do quit on errors
set -e
Expand Down Expand Up @@ -30,4 +32,5 @@ if [[ ! -x "$(command -v rclone)" ]]; then
exit 1
fi

sh -c "rclone $*"
run_rclone=$(sh -c "rclone $*")
echo "::set-output name=rclone::$run_rclone"

0 comments on commit 00128a3

Please sign in to comment.