Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kas-tle authored Jan 30, 2023
1 parent e663a1b commit a22ba40
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,6 @@ runs:
echo "debug_org=$org" >> $GITHUB_ENV
echo "debug_thirdleveldomain=$thirdleveldomain" >> $GITHUB_ENV
if [ "$org" == "$thirdleveldomain" ]; then
pagesurl="${org}.github.io"
else
pagesurl=$(echo "$GITHUB_REPOSITORY" | sed 's/\//.github.io\//')
fi
echo "pagesurl=$pagesurl" >> $GITHUB_ENV
echo "emptydir=$(mktemp -d)" >> "$GITHUB_ENV"
echo "datetime=$(date '+%Y-%m-%d %H:%M %Z')" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -136,7 +128,7 @@ runs:

- name: Expose deployment URL
id: url
run: echo "::set-output name=url::https://${{ env.pagesurl }}/${{ env.targetdir }}/"
run: echo "::set-output name=url::https://preview.mcjava.dev/${{ env.targetdir }}/"
shell: bash

- name: Leave a comment after deployment
Expand All @@ -153,7 +145,7 @@ runs:
:---:
🛫 Deployed preview to
https://${{ env.pagesurl }}/${{ env.targetdir }}/
https://preview.mcjava.dev/${{ env.targetdir }}/
on branch [`${{ inputs.preview-branch }}`](\
${{ github.server_url }}/${{ github.repository }}\
Expand Down

0 comments on commit a22ba40

Please sign in to comment.