mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-11-26 19:44:14 +01:00
Better Timestamp readability + Description Fallback
Time stamp will now be reported as Updated to v2-84 at 10/21/2017 9:53:56 AM UTC instead of the Updated to v2-84 at 2017-10-21T09:53:56.0000000Z Description fallback will make it so that if there's no commit description it'll put a message instead of the variable name. Before: $(appveyor_repo_commit_message_extended) After: No description was added to this commit
This commit is contained in:
parent
b9ccf1a96f
commit
f980144072
@ -2,6 +2,8 @@
|
|||||||
version: v2-{build}
|
version: v2-{build}
|
||||||
environment:
|
environment:
|
||||||
# It's prefered to have the GithubAuthToken (encrypted) set in the UI. Follow this guide for the instructions https://www.appveyor.com/docs/deployment/github/#provider-settings.
|
# It's prefered to have the GithubAuthToken (encrypted) set in the UI. Follow this guide for the instructions https://www.appveyor.com/docs/deployment/github/#provider-settings.
|
||||||
|
CommitTimestamp: 0
|
||||||
|
CommitDescription: "No description was added to this commit"
|
||||||
CYG_MIRROR: http://cygwin.mirror.constant.com
|
CYG_MIRROR: http://cygwin.mirror.constant.com
|
||||||
CYG_PACKAGES: bash,php,dos2unix
|
CYG_PACKAGES: bash,php,dos2unix
|
||||||
matrix:
|
matrix:
|
||||||
@ -32,6 +34,8 @@ init:
|
|||||||
|
|
||||||
# Install needed build dependencies
|
# Install needed build dependencies
|
||||||
install:
|
install:
|
||||||
|
- if defined appveyor_repo_commit_message_extended (set CommitDescription=%appveyor_repo_commit_message_extended%) # If there's is a description set it to that, otherwise leave it.
|
||||||
|
- ps: $env:CommitTimestamp=[System.DateTime]::UtcNow # Readable timestamp
|
||||||
- ps: if (Test-Path Env:\CYG_ROOT) { Start-FileDownload "http://cygwin.com/$env:CYG_SETUP" -FileName "cygsetup.exe" -Timeout 30000 }
|
- ps: if (Test-Path Env:\CYG_ROOT) { Start-FileDownload "http://cygwin.com/$env:CYG_SETUP" -FileName "cygsetup.exe" -Timeout 30000 }
|
||||||
- ps: if ((Get-Content "cygsetup.exe") -eq $Null) { Copy-Item "$env:CYG_SETUP" -Destination "cygsetup.exe" -Force } else { Copy-Item "cygsetup.exe" -Destination "$env:CYG_SETUP" -Force }
|
- ps: if ((Get-Content "cygsetup.exe") -eq $Null) { Copy-Item "$env:CYG_SETUP" -Destination "cygsetup.exe" -Force } else { Copy-Item "cygsetup.exe" -Destination "$env:CYG_SETUP" -Force }
|
||||||
# Quiet-mode isn't really working but this does work.
|
# Quiet-mode isn't really working but this does work.
|
||||||
@ -58,7 +62,7 @@ deploy:
|
|||||||
tag: "AppVeyor"
|
tag: "AppVeyor"
|
||||||
# Release needs to be the same otherwise it won't overwrite.
|
# Release needs to be the same otherwise it won't overwrite.
|
||||||
release: "Graphic Packs Latest Release"
|
release: "Graphic Packs Latest Release"
|
||||||
description: "Updated to **$(appveyor_build_version)** at $(appveyor_repo_commit_timestamp)\n\n### Changelog:\n**$(appveyor_repo_commit_message)** - Commit $(appveyor_repo_commit) by $(appveyor_repo_commit_author):\n```\n$(appveyor_repo_commit_message_extended)\n```\n#### [Installation instructions](https://$(appveyor_account_name).github.io/$(appveyor_project_name)/)"
|
description: "Updated to **$(appveyor_build_version)** at $(CommitTime)\n\n### Changelog:\n**$(appveyor_repo_commit_message)** - Commit $(appveyor_repo_commit) by $(appveyor_repo_commit_author):\n```\n$(CommitDescription)\n```\n#### [Installation instructions](https://$(appveyor_account_name).github.io/$(appveyor_project_name)/)"
|
||||||
provider: GitHub
|
provider: GitHub
|
||||||
# Auth token is generated by using https://www.appveyor.com/docs/deployment/github/#provider-settings
|
# Auth token is generated by using https://www.appveyor.com/docs/deployment/github/#provider-settings
|
||||||
auth_token: $(GithubAuthToken)
|
auth_token: $(GithubAuthToken)
|
||||||
|
Loading…
Reference in New Issue
Block a user