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

Fix doc syncing for .x removal #56

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Fix doc syncing for .x removal #56

merged 2 commits into from
Jan 4, 2024

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Jan 3, 2024

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

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}"
Copy link
Contributor Author

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 echos.

Copy link
Member

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.

@huonw huonw marked this pull request as ready for review January 3, 2024 23:40
Comment on lines +63 to +64
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"
Copy link
Contributor Author

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.)

@huonw huonw merged commit c3669e6 into main Jan 4, 2024
2 checks passed
@huonw huonw deleted the huonw/48-sync branch January 4, 2024 04:09
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.

2 participants