Skip to content

Commit

Permalink
Fix log again
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyentvan7 committed Dec 20, 2023
1 parent 18ebff5 commit 161d157
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,14 @@ jobs:
- name: Output date
id: output-date
run: echo "date=$(date -u)" >> $GITHUB_OUTPUT
- name: Output ref
id: output-ref
run: echo "ref=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: Maintain comment
uses: actions-cool/maintain-one-comment@v3
with:
body: |
[${{ inputs.frontend_name }}] [${{ steps.output-date.outputs.date }}] - Building version $(git rev-parse HEAD)
[${{ inputs.frontend_name }}] [${{ steps.output-date.outputs.date }}] - Building version ${{ steps.output-ref.outputs.ref }}
body-include: '<!-- Created by actions-cool/maintain-one-comment -->'
update-mode: 'append'
- name: Build genshin-optimizer (Webpack)
Expand Down Expand Up @@ -128,6 +131,7 @@ jobs:
git push origin gh-pages
- name: Export url
id: export-url
# First line splits the full repo name (frzyc/genshin-optimizer) into $account (frzyc) and $repo (genshin-optimizer)
run: |
IFS=/ read -r account repo <<< ${{ inputs.pr_repo }}
echo "url=Deployed $(git rev-parse HEAD) to https://$account.github.io/$repo/${{ inputs.deployment_name }}/${{ inputs.frontend_name }} (Takes 3-5 minutes after this completes to be available)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 161d157

Please sign in to comment.