Skip to content

Commit

Permalink
Introduce stable image name with variable query
Browse files Browse the repository at this point in the history
  • Loading branch information
baierjan committed Jan 18, 2024
1 parent f202879 commit 8efea74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ runs:
org=${{ github.repository_owner }}
repo=$(cut -f2 -d/ <<<${{ github.repository }})
[ "${{ github.event_name }}" == pull_request ] && extra="/pr-preview/pr-${{ github.event.number }}"
preview="preview_$(date +%s).png"
preview_date="$(date +%s)"
preview="preview.png"
echo "PREVIEW_NAME=$preview" >> "$GITHUB_ENV"
echo "PREVIEW_URL=https://$org.github.io/$repo$extra/$preview" >> "$GITHUB_ENV"
echo "PREVIEW_URL=https://$org.github.io/$repo$extra/$preview?v=$preview_date" >> "$GITHUB_ENV"
if [ "${{ env.BACKLOG_STATUS }}" -eq 0 ]; then
color="#55cc33"
else
Expand Down

0 comments on commit 8efea74

Please sign in to comment.