Update diff-sha.sh (#379)

* Update diff-sha.sh

* Update action.yml

* Update test.yml

* Update test.yml

* Update diff-sha.sh

* Update action.yml

* Update action.yml
This commit is contained in:
Tonye Jack 2022-02-17 03:00:58 -05:00 committed by GitHub
parent 6113e26177
commit 92456281bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -133,6 +133,7 @@ runs:
id: base-sha id: base-sha
shell: bash shell: bash
- run: | - run: |
# "Calculating the previous and current SHA..."
bash $GITHUB_ACTION_PATH/diff-sha.sh bash $GITHUB_ACTION_PATH/diff-sha.sh
id: changed-files-diff-sha id: changed-files-diff-sha
shell: bash shell: bash

View File

@ -30,7 +30,7 @@ else
echo "Found 'temp_changed_files' remote" echo "Found 'temp_changed_files' remote"
fi fi
echo "Getting HEAD info..." echo "Getting HEAD SHA..."
if [[ -z $INPUT_SHA ]]; then if [[ -z $INPUT_SHA ]]; then
CURRENT_SHA=$(git rev-list --no-merges -n 1 HEAD 2>&1) && exit_status=$? || exit_status=$? CURRENT_SHA=$(git rev-list --no-merges -n 1 HEAD 2>&1) && exit_status=$? || exit_status=$?