From f1b1da3ca38bc444ea12d49f7ca03a123e8f5b4c Mon Sep 17 00:00:00 2001 From: Milan Date: Sat, 4 Nov 2017 14:16:58 +0100 Subject: [PATCH] Fix failing builds Description is now fully enclosed, so there's nothing escaping it. Previously (discovered by NAVras), the brackets (and possibly other stuff) wouldn't be escaped and would result it a failed build. --- appveyor.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index c899d487..c745d56c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,7 +4,6 @@ skip_tags: true 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. CommitTimestamp: 0 - CommitDescription: 'No description was added to this commit.' CYG_MIRROR: http://cygwin.mirror.constant.com CYG_PACKAGES: bash,php,dos2unix matrix: @@ -35,7 +34,7 @@ init: # Install needed build dependencies 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. + - if defined appveyor_repo_commit_message_extended (echo "Found commit description!") else (set appveyor_repo_commit_message_extended='No description was added to this commit.') # 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 ((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 } @@ -62,7 +61,7 @@ deploy: tag: "appveyor$(appveyor_build_version)" # Tag needs to be the same otherwise it won't overwrite. release: "Graphic Packs: version 2-$(appveyor_build_version)" - description: "Updated to **v2-$(appveyor_build_version)** at $(CommitTimestamp) (UTC)\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)/) - [Previous versions](https://ci.appveyor.com/project/$(appveyor_account_name)/cemu-graphic-packs/history)" + description: "Updated to **v2-$(appveyor_build_version)** at $(CommitTimestamp) (UTC)\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)/) - [Previous versions](https://ci.appveyor.com/project/$(appveyor_account_name)/cemu-graphic-packs/history)" provider: GitHub # Auth token is generated by using https://www.appveyor.com/docs/deployment/github/#provider-settings auth_token: $(GithubAuthToken)