3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-01-31 05:20:11 +00:00

updated error message and fixed the test

This commit is contained in:
Tonye Jack 2022-08-21 10:44:28 -06:00
parent ee1ab68105
commit 620fa099ad
2 changed files with 4 additions and 5 deletions

View file

@ -316,7 +316,7 @@ jobs:
id: changed-files-until id: changed-files-until
uses: ./ uses: ./
with: with:
until: "2022-08-20" until: "2022-08-21"
- name: Show output - name: Show output
run: | run: |
echo '${{ toJSON(steps.changed-files-until.outputs) }}' echo '${{ toJSON(steps.changed-files-until.outputs) }}'

View file

@ -122,7 +122,6 @@ fi
if [[ -n "$PREVIOUS_SHA" && -n "$CURRENT_SHA" && "$PREVIOUS_SHA" == "$CURRENT_SHA" && "$INITIAL_COMMIT" == "false" ]]; then if [[ -n "$PREVIOUS_SHA" && -n "$CURRENT_SHA" && "$PREVIOUS_SHA" == "$CURRENT_SHA" && "$INITIAL_COMMIT" == "false" ]]; then
echo "::error::Similar commit hashes detected: previous sha: $PREVIOUS_SHA is equivalent to the current sha: $CURRENT_SHA" echo "::error::Similar commit hashes detected: previous sha: $PREVIOUS_SHA is equivalent to the current sha: $CURRENT_SHA"
echo "::error::You seem to be missing 'fetch-depth: 0' or 'fetch-depth: 2'. See https://github.com/tj-actions/changed-files#usage"
exit 1 exit 1
fi fi