Skip to content

Commit

Permalink
add workspace-path option
Browse files Browse the repository at this point in the history
  • Loading branch information
dctalbot committed Jul 6, 2021
1 parent 306621f commit 618b573
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: dctalbot/umich-afs-action@v2
with:
workspace-path: 'build'
env:
UNIQNAME: 'dctalbot'
SSHPASS: ${{ secrets.SSHPASS }}
```
**Disclaimer**: Read the code (see entrypoint.sh) before running it. Use at your own risk.
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ author: "dctalbot"
branding:
icon: "arrow-up"
color: "blue"
inputs:
workspace-path:
description: "Path to deployable directory (no leading slash)"
required: false
default: "."
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.workspace-path }}
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

set -eu

rsync -r --delete -e "sshpass -e ssh -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/. $UNIQNAME@login.itd.umich.edu:./Public/html/
rsync -r --delete -e "sshpass -e ssh -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/$1 $UNIQNAME@login.itd.umich.edu:./Public/html/

0 comments on commit 618b573

Please sign in to comment.