From 69189daf63b6315496ca9d9f245d1a0b29a1b634 Mon Sep 17 00:00:00 2001 From: "Alex Lau (AvengerMoJo)" Date: Mon, 23 Oct 2023 12:52:31 +0800 Subject: [PATCH] Rename the - variable name with _ Signed-off-by: Alex Lau (AvengerMoJo) --- .gitea/workflows/obs-service.yaml | 8 ++++---- action.yml | 8 ++++---- runner.sh | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/obs-service.yaml b/.gitea/workflows/obs-service.yaml index 5830530..3c4fd57 100644 --- a/.gitea/workflows/obs-service.yaml +++ b/.gitea/workflows/obs-service.yaml @@ -9,9 +9,9 @@ jobs: - name: Build action step uses: https://src.opensuse.org/alexlau/bc@v1 with: - osc-user: 'alexlau' - osc-path: 'home:alexlau:branches:Base:System' - osc-package: 'bc' + osc_user: 'alexlau' + osc_path: 'home:alexlau:branches:Base:System' + osc_package: 'bc' env: # Or as an environment variable - osc-pass: ${{ secrets.OSCPASS }} + osc_pass: ${{ secrets.OSCPASS }} id: osc-demo diff --git a/action.yml b/action.yml index 00254ef..423266a 100644 --- a/action.yml +++ b/action.yml @@ -2,7 +2,7 @@ name: 'OSC Test' description: 'Checkout the rpm and install run from osc' inputs: - osc-user: # id of input + osc_user: # id of input description: 'Who is the osc user' required: true default: 'alexlau' @@ -13,6 +13,6 @@ runs: using: 'docker' image: 'Dockerfile' args: - - ${{ inputs.osc-user}} - - ${{ inputs.osc-path}} - - ${{ inputs.osc-package}} + - ${{ inputs.osc_user}} + - ${{ inputs.osc_path}} + - ${{ inputs.osc_package}} diff --git a/runner.sh b/runner.sh index da3c5a1..e124b0f 100755 --- a/runner.sh +++ b/runner.sh @@ -1,8 +1,8 @@ #!/bin/sh -l -echo $osc-user $osc-path $osc-package echo $1 $2 $3 -echo $INPUT_OSC-USER $INPUT_OSC-PATH $INPUT_OSC-PACKAGE -# osc checkout $INPUT_OSC-PATH $INPUT_OSC-PACKAGE +echo "${osc_user} ${osc_path} ${osc_package}" +echo "${INPUT_OSC_USER} ${INPUT_OSC_PATH} ${INPUT_OSC_PACKAGE}" +# osc checkout $INPUT_OSC_PATH $INPUT_OSC_PACKAGE # osc buildlog openSUSE_Factory x86_64