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: simplify validate workflow #15

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented Dec 4, 2024

No description provided.

if [ -z "$ADDED_FILES" ]; then
echo "No new JSON files found."
fi
ADDED_FILES=$(git diff HEAD^..HEAD --diff-filter=A --name-only records/new | grep '/.*\.json$' || true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work when there are multiple commits in the PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, HEAD^ references the base branch, and HEAD the merge commit.

@aduh95 aduh95 merged commit a63eea0 into nodejs:main Dec 10, 2024
1 check passed
@aduh95 aduh95 deleted the simpler-validate branch December 10, 2024 16:09
@joyeecheung joyeecheung mentioned this pull request Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants