{"action":"opened","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/9208","repository_url":"https://api.github.com/repos/travis-ci/travis-ci","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/9208/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/9208/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/9208/events","html_url":"https://github.com/travis-ci/travis-ci/issues/9208","id":295836267,"number":9208,"title":"deploy.tag_name value is not honored when deploying to GitHub Releases","user":{"login":"Deilan","id":4777512,"avatar_url":"https://avatars2.githubusercontent.com/u/4777512?v=4","gravatar_id":"","url":"https://api.github.com/users/Deilan","html_url":"https://github.com/Deilan","followers_url":"https://api.github.com/users/Deilan/followers","following_url":"https://api.github.com/users/Deilan/following{/other_user}","gists_url":"https://api.github.com/users/Deilan/gists{/gist_id}","starred_url":"https://api.github.com/users/Deilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deilan/subscriptions","organizations_url":"https://api.github.com/users/Deilan/orgs","repos_url":"https://api.github.com/users/Deilan/repos","events_url":"https://api.github.com/users/Deilan/events{/privacy}","received_events_url":"https://api.github.com/users/Deilan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-09T11:15:10Z","updated_at":"2018-02-09T11:15:10Z","closed_at":null,"author_association":"NONE","body":"I've configured a deployment to GitHub Releases. It contains the following:\r\n1. condition `if: tag IS blank`\r\n2. pushing git tag as a part of `before_deploy` if it doesn't exist already.\r\n3. deploy section:\r\n\r\n```yaml\r\ndeploy:\r\n  provider: releases\r\n  tag_name: \"${TRAVIS_BRANCH}/${TRAVIS_BUILD_NUMBER}\"\r\n```\r\n\r\nThe issue is being reproduced when I restart any build, which is not the latest one.\r\n\r\nExample: the latest build number is 200. If I restart build with number 199 and then when it comes to deployment, it ignores `tag_name` value (`master/199`) and tries to deploy to the latest available tag, which is `master/200`.\r\n\r\nLog:\r\n```\r\nPreparing deploy\r\nWarning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.\r\nFrom github.com:eko-point/feeding\r\n * [new tag]         master/199            -> master/199\r\n * [new tag]         master/200            -> master/200\r\n\r\nCurrent tag is: master/200 <-- THIS IS WRONG\r\n```"}}
{"actor":{"display_login":"Deilan"}}