Skip to content

Commit

Permalink
fix: Handle the search index updates for latest-tag and RC dirs (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
cicdguy authored Jan 10, 2024
1 parent 8fe31e6 commit c22cd0c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,20 @@ runs:
rm -rf latest-tag
rm -rf release-candidate
[[ "${latest_tag}" != "" ]] \
&& cp -r "${latest_tag}" latest-tag \
&& ( \
cp -r "${latest_tag}" latest-tag \
&& perl -p -i -e \
"s@${latest_tag}@latest-tag@g" \
latest-tag/search.json
) \
|| echo "No latest tag found, not creating directory for latest-tag"
[[ "${latest_rc_tag}" != "" ]] \
&& cp -r "${latest_rc_tag}" release-candidate \
&& ( \
cp -r "${latest_rc_tag}" release-candidate \
&& perl -p -i -e \
"s@${latest_rc_tag}@release-candidate@g" \
release-candidate/search.json
) \
|| echo "No release candidate tag found, not creating directory for release-candidate"
if [[ "${{ inputs.latest-tag-alt-name }}" != "" && -d latest-tag ]]
then {
Expand Down

0 comments on commit c22cd0c

Please sign in to comment.