change variable names

This commit is contained in:
Carneiro 2024-11-24 15:13:39 -03:00
parent 12ade96a9b
commit 55599d65ac
1 changed files with 14 additions and 14 deletions

View File

@ -1,21 +1,21 @@
name: "Alice Sites pull" name: "Alice Sites pull"
description: "Updates and builds alice sites" description: "Pulls and builds jekyll sites"
author: "Carneiro" author: "Carneiro"
inputs: inputs:
site-dirname: src_dir:
description: "Site directory (inside /var/www/html/alice_sites) name"
default: ${{ github.event.repository.name }}
source-dir:
description: "Source directory" description: "Source directory"
default: "/var/www/src/alice_sites" 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" description: "Destination directory"
default: "/var/www/html/alice_sites" default: "/var/www/html/alice_sites"
jekyll-args: jekyll_args:
description: "Args to pass to jekyll build" description: "Args to pass to jekyll build"
default: "--trace --incremental" default: "--trace --incremental"
skip-build: skip_build:
description: "Wheather or not the sites skips building" description: "Wheather or not the sites skips building"
default: "false" default: "false"
host: host:
@ -36,12 +36,12 @@ runs:
steps: steps:
- uses: appleboy/ssh-action@v1.2.0 - uses: appleboy/ssh-action@v1.2.0
env: env:
SITE_DIRNAME: ${{ inputs.site-dirname }} SITE_DIRNAME: ${{ inputs.dirname }}
REPO_NAME: ${{ gitea.repository }} REPO_NAME: ${{ gitea.repository }}
SKIP_BUILD: ${{ inputs.skip-build }} SKIP_BUILD: ${{ inputs.skip_build }}
SOURCE_DIR: ${{ inputs.source-dir }} SOURCE_DIR: ${{ inputs.src_dir }}
DEST_DIR: ${{ inputs.dest-dir }} DEST_DIR: ${{ inputs.dest_dir }}
JEKYLL_ARGS: ${{ inputs.jekyll-args }} JEKYLL_ARGS: ${{ inputs.jekyll_args }}
with: with:
host: ${{ inputs.host }} host: ${{ inputs.host }}
username: ${{ inputs.username }} username: ${{ inputs.username }}