diff --git a/action.yml b/action.yml index 37ab8e4..54707ee 100644 --- a/action.yml +++ b/action.yml @@ -1,21 +1,21 @@ name: "Alice Sites pull" -description: "Updates and builds alice sites" +description: "Pulls and builds jekyll sites" author: "Carneiro" inputs: - site-dirname: - description: "Site directory (inside /var/www/html/alice_sites) name" - default: ${{ github.event.repository.name }} - source-dir: + src_dir: description: "Source directory" default: "/var/www/src/alice_sites" - dest-dir: + dirname: + description: "Site directory (inside src_dir) name" + default: ${{ github.event.repository.name }} + dest_dir: description: "Destination directory" default: "/var/www/html/alice_sites" - jekyll-args: + jekyll_args: description: "Args to pass to jekyll build" default: "--trace --incremental" - skip-build: + skip_build: description: "Wheather or not the sites skips building" default: "false" host: @@ -36,12 +36,12 @@ runs: steps: - uses: appleboy/ssh-action@v1.2.0 env: - SITE_DIRNAME: ${{ inputs.site-dirname }} + SITE_DIRNAME: ${{ inputs.dirname }} REPO_NAME: ${{ gitea.repository }} - SKIP_BUILD: ${{ inputs.skip-build }} - SOURCE_DIR: ${{ inputs.source-dir }} - DEST_DIR: ${{ inputs.dest-dir }} - JEKYLL_ARGS: ${{ inputs.jekyll-args }} + SKIP_BUILD: ${{ inputs.skip_build }} + SOURCE_DIR: ${{ inputs.src_dir }} + DEST_DIR: ${{ inputs.dest_dir }} + JEKYLL_ARGS: ${{ inputs.jekyll_args }} with: host: ${{ inputs.host }} username: ${{ inputs.username }} @@ -63,4 +63,4 @@ runs: # Build [ $SKIP_BUILD != false ] && exit 0 bundle install - bundle exec jekyll build $JEKYLL_ARGS --destination=$DEST_DIR/$SITE_DIRNAME \ No newline at end of file + bundle exec jekyll build $JEKYLL_ARGS --destination=$DEST_DIR/$SITE_DIRNAME