Skip to content

Commit

Permalink
Merge pull request #647 from tj-actions/chore/remove-logging-the-gith…
Browse files Browse the repository at this point in the history
…ub-context
  • Loading branch information
jackton1 committed Sep 25, 2022
2 parents cc6619b + bc7fa5e commit 13c0052
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Expand Up @@ -270,8 +270,6 @@ jobs:
with:
submodules: true
fetch-depth: 0
- name: Show github context
run: echo '${{ toJSON(github) }}'
- name: Run changed-files with defaults
id: changed-files
uses: ./
Expand Down
8 changes: 6 additions & 2 deletions diff-sha.sh
Expand Up @@ -70,8 +70,12 @@ if [[ -z $GITHUB_BASE_REF ]]; then
fi

if [[ "$PREVIOUS_SHA" == "$CURRENT_SHA" ]]; then
INITIAL_COMMIT="true"
echo "::debug::Initial commit detected"
PREVIOUS_SHA=$(git rev-parse "$CURRENT_SHA^1")

if [[ "$PREVIOUS_SHA" == "$CURRENT_SHA" ]]; then
INITIAL_COMMIT="true"
echo "::debug::Initial commit detected"
fi
fi
else
PREVIOUS_SHA=$INPUT_BASE_SHA
Expand Down

0 comments on commit 13c0052

Please sign in to comment.