From 61bc00ca2fa8b0638f023fc11178b7d82ae632a8 Mon Sep 17 00:00:00 2001 From: andry81 Date: Tue, 9 Aug 2022 15:59:52 +0300 Subject: [PATCH] 2022.08.09: * new: action.yml: print commit reference url to the log --- action.yml | 8 ++++++++ changelog.txt | 3 +++ userlog.md | 3 +++ 3 files changed, 14 insertions(+) diff --git a/action.yml b/action.yml index a00afec..35a31da 100644 --- a/action.yml +++ b/action.yml @@ -162,6 +162,8 @@ runs: git config --global user.name "GitHub Action" git config --global user.email "action@github.com" git commit -m "A/U: $COMMIT_MESSAGE_DATE_TIME_PREFIX: ${COMMIT_MESSAGE_PREFIX}${COMMIT_MESSAGE_SUFFIX:+" | "}$COMMIT_MESSAGE_SUFFIX" + $GH_WORKFLOW_ROOT/bash/github/set-env-from-args.sh \ + "HEAD_COMMIT_HASH=$(git rev-parse HEAD)" - name: push inpage-downloads uses: ad-m/github-push-action@master @@ -170,3 +172,9 @@ runs: branch: ${{ inputs.output_repo_branch }} directory: inpage-downloads github_token: ${{ inputs.output_repo_write_token }} + + - name: print commit parameters + shell: bash + run: | + $GH_WORKFLOW_ROOT/bash/github/print-notice.sh \ + "commit reference url: https://github.com/${{ inputs.output_repo_owner }}/${{ inputs.output_repo }}/commit/$HEAD_COMMIT_HASH" diff --git a/changelog.txt b/changelog.txt index abee26f..0f13d38 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +2022.08.09: +* new: action.yml: print commit reference url to the log + 2022.05.20: * changed: README.md: readme update diff --git a/userlog.md b/userlog.md index 60e632d..91683ad 100644 --- a/userlog.md +++ b/userlog.md @@ -2,6 +2,9 @@ > :warning: to find all changes use [changelog.txt](https://github.com/andry81-devops/gh-action--accum-inpage-downloads/blob/master/changelog.txt) file in a directory +## 2022.08.09: +* new: action.yml: print commit reference url to the log + ## 2022.05.11: * new: action.yml: added `commit_msg_entity` optional input parameter as replacement of `stat_entity` in the commit message * changed: action.yml: renamed `stat_entity_path` to `stat_entity` to select implementation