3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-03-05 11:06:22 +00:00

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
shell: bash
- run: |
# "Calculating the previous and current SHA..."
bash $GITHUB_ACTION_PATH/diff-sha.sh
id: changed-files-diff-sha
shell: bash

View file

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