From c6bb9b24b4f1a3e1e3890e7076a17970a05fad28 Mon Sep 17 00:00:00 2001 From: David Hiendl Date: Tue, 24 Oct 2023 10:34:34 +0200 Subject: [PATCH] added ci_hostname to github job log --- action.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/action.yml b/action.yml index 63ee52b..db72dd5 100644 --- a/action.yml +++ b/action.yml @@ -8,28 +8,28 @@ inputs: required: false outputs: - is_default: + git_is_default: value: ${{ steps.default.outputs.is_default }} description: 'Returns `"true"` if the current branch is the default else `"false"`.' - is_tag: + git_is_tag: value: ${{ steps.tag.outputs.is_tag }} description: 'Returns `"true"` if the current branch is a tag else `"false"`.' - default_branch: + git_default_branch: value: ${{ steps.default.outputs.default_branch }} description: 'The default branch name e.g `main` OR `master`' - current_branch: + git_current_branch: value: ${{ steps.current_branch.outputs.current_branch }} description: 'The current branch name regardless of event_type e.g `main`, `feature/test`' - base_ref_branch: + git_base_ref_branch: value: ${{ steps.branch.outputs.base_ref_branch }} description: 'The target branch of a pull request or tag e.g `main`' - head_ref_branch: + git_head_ref_branch: value: ${{ steps.branch.outputs.head_ref_branch }} description: 'The source branch of a pull request e.g `feature/test`' - ref_branch: + git_ref_branch: value: ${{ steps.branch.outputs.ref_branch }} description: 'The branch that triggered the workflow run. e.g `1/merge`, `main`' - tag: + git_tag: value: ${{ steps.tag.outputs.tag }} description: 'The tag that triggered the workflow run. e.g `v0.0.1`, `0.0.1`' @@ -146,6 +146,7 @@ runs: run: | CI_HOSTNAME=$(echo $GITHUB_SERVER_URL | sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/') echo "::set-output name=ci_hostname::$(eval printf "%s" "$CI_HOSTNAME")" + echo "ci_hostname=$CI_HOSTNAME" >> "$GITHUB_OUTPUT" shell: bash branding: