Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove logging the github context #647

Merged
merged 2 commits into from Sep 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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