From f572e7bf9ed5b6b3f0850443e57a73fcf2dd83e1 Mon Sep 17 00:00:00 2001 From: lslqtz Date: Sun, 28 Jan 2024 14:06:16 +0800 Subject: [PATCH] Add release_asset_dir to github output --- action.yml | 2 ++ release.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/action.yml b/action.yml index 46a6682..c655d62 100644 --- a/action.yml +++ b/action.yml @@ -101,6 +101,8 @@ inputs: default: 'TRUE' outputs: + release_asset_dir: + description: 'Release file directory provided for use by other workflows' release_asset_file: description: 'Release file name provided for use by other workflows' release_asset_path: diff --git a/release.sh b/release.sh index 50cb836..51b480a 100755 --- a/release.sh +++ b/release.sh @@ -188,5 +188,6 @@ if [ ! -z "${INPUT_POST_COMMAND}" ]; then fi # output path for use by other workflows (e.g.: actions/upload-artifact) +echo "release_asset_dir=${INPUT_PROJECT_PATH}/${BUILD_ARTIFACTS_FOLDER}" >> "${GITHUB_OUTPUT}" echo "release_asset_file=${RELEASE_ASSET_FILE}" >> "${GITHUB_OUTPUT}" echo "release_asset_path=${INPUT_PROJECT_PATH}/${BUILD_ARTIFACTS_FOLDER}/${RELEASE_ASSET_FILE}" >> "${GITHUB_OUTPUT}"