-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fix doc syncing for .x
removal
#56
Conversation
if [ ! -d "pantsbuild.org/$DESTINATION_DIR" ]; then | ||
DESTINATION_DIR="docs" | ||
fi | ||
echo "DESTINATION_DIR=$(echo "$DESTINATION_DIR")" >> "${GITHUB_OUTPUT}" | ||
echo "DESTINATION_DIR=$(echo "$DESTINATION_DIR")" | tee -a "${GITHUB_OUTPUT}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drive-by change, for non-confidential values like this, printing the value to stdout helps with debugging, and tee -a
is a handy way to do so without needing to repeat the echo
s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm gonna try really hard to keep this one in my pocket.
mkdir -p "pantsbuild.org/${{ steps.get-destination-dir.outputs.DESTINATION_DIR }}/reference" | ||
cp help-all.json "pantsbuild.org/${{ steps.get-destination-dir.outputs.DESTINATION_DIR }}/reference" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(This appears to be an existing issue with this action. fixed here but not directly related to #48.)
This fixes the doc syncer now that we don't have
.x
in the directories (#48), per #48 (comment)It also makes an unrelated fix, so that my test works.
Test: #57, https://github.com/pantsbuild/pantsbuild.org/actions/runs/7403672327/job/20143898054