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: complete HTML file for redirect #406

Merged
merged 2 commits into from
Feb 23, 2024
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
16 changes: 10 additions & 6 deletions doc-deploy-dev/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,19 @@ runs:
shell: bash
run: |
echo "<!DOCTYPE html>" > index.html
echo "<meta charset=\"utf-8\">" >> index.html
echo "<html>" >> index.html
echo " <head>" >> index.html
echo " <meta charset=\"utf-8\">" >> index.html
if [ -z "${{ inputs.redirection-title }}" ]; then
echo "<title>Redirecting to ${{ env.REDIRECTION_URL }}</title>" >> index.html
echo " <title>Redirecting to ${{ env.REDIRECTION_URL }}</title>" >> index.html
else
echo "<title>${{ inputs.redirection-title }}</title>" >> index.html
echo " <title>${{ inputs.redirection-title }}</title>" >> index.html
fi
echo "<meta name=\"description\" content=\"${{ inputs.redirection-description }}\">" >> index.html
echo "<meta http-equiv=\"refresh\" content=\"0; URL=${{ env.REDIRECTION_URL }}\">" >> index.html
echo "<link rel=\"canonical\" href=\"${{ env.REDIRECTION_URL }}\">" >> index.html
echo " <meta name=\"description\" content=\"${{ inputs.redirection-description }}\">" >> index.html
echo " <meta http-equiv=\"refresh\" content=\"0; URL=${{ env.REDIRECTION_URL }}\">" >> index.html
echo " <link rel=\"canonical\" href=\"${{ env.REDIRECTION_URL }}\">" >> index.html
echo " </head>" >> index.html
echo "</html>" >> index.html
jorgepiloto marked this conversation as resolved.
Show resolved Hide resolved

- name: "Show the contents of the 'index.html' redirection file"
shell: bash
Expand Down
16 changes: 10 additions & 6 deletions doc-deploy-stable/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -391,15 +391,19 @@ runs:
shell: bash
run: |
echo "<!DOCTYPE html>" > index.html
echo "<meta charset=\"utf-8\">" >> index.html
echo "<html>" >> index.html
echo " <head>" >> index.html
echo " <meta charset=\"utf-8\">" >> index.html
if [ -z "${{ inputs.redirection-title }}" ]; then
echo "<title>Redirecting to ${{ env.REDIRECTION_URL }}</title>" >> index.html
echo " <title>Redirecting to ${{ env.REDIRECTION_URL }}</title>" >> index.html
else
echo "<title>${{ inputs.redirection-title }}</title>" >> index.html
echo " <title>${{ inputs.redirection-title }}</title>" >> index.html
fi
echo "<meta name=\"description\" content=\"${{ inputs.redirection-description }}\">" >> index.html
echo "<meta http-equiv=\"refresh\" content=\"0; URL=${{ env.REDIRECTION_URL }}\">" >> index.html
echo "<link rel=\"canonical\" href=\"${{ env.REDIRECTION_URL }}\">" >> index.html
echo " <meta name=\"description\" content=\"${{ inputs.redirection-description }}\">" >> index.html
echo " <meta http-equiv=\"refresh\" content=\"0; URL=${{ env.REDIRECTION_URL }}\">" >> index.html
echo " <link rel=\"canonical\" href=\"${{ env.REDIRECTION_URL }}\">" >> index.html
echo " </head>" >> index.html
echo "</html>" >> index.html

- name: "Show the contents of the 'index.html' redirection file"
shell: bash
Expand Down