{"action":"closed","issue":{"url":"https://api.github.com/repos/BoPeng/SOS/issues/308","repository_url":"https://api.github.com/repos/BoPeng/SOS","labels_url":"https://api.github.com/repos/BoPeng/SOS/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/BoPeng/SOS/issues/308/comments","events_url":"https://api.github.com/repos/BoPeng/SOS/issues/308/events","html_url":"https://github.com/BoPeng/SOS/issues/308","id":194348877,"number":308,"title":"step level workdir option","user":{"login":"BoPeng","id":9889312,"avatar_url":"https://avatars.githubusercontent.com/u/9889312?v=3","gravatar_id":"","url":"https://api.github.com/users/BoPeng","html_url":"https://github.com/BoPeng","followers_url":"https://api.github.com/users/BoPeng/followers","following_url":"https://api.github.com/users/BoPeng/following{/other_user}","gists_url":"https://api.github.com/users/BoPeng/gists{/gist_id}","starred_url":"https://api.github.com/users/BoPeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoPeng/subscriptions","organizations_url":"https://api.github.com/users/BoPeng/orgs","repos_url":"https://api.github.com/users/BoPeng/repos","events_url":"https://api.github.com/users/BoPeng/events{/privacy}","received_events_url":"https://api.github.com/users/BoPeng/received_events","type":"User","site_admin":false},"labels":[{"id":325435539,"url":"https://api.github.com/repos/BoPeng/SOS/labels/request","name":"request","color":"159818","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-08T14:26:58Z","updated_at":"2016-12-09T04:46:29Z","closed_at":"2016-12-09T04:46:29Z","body":"We have action level and task level parameters `workdir` that changes workdir for actions and tasks (groups of actions), it makes sense to have step level `workdir` (as step option) because it allows consistent use of directory names. For example,\r\n\r\n```\r\n[10]\r\ninput: '../a.txt'\r\nrun: workdir='..'\r\n  process ${input}\r\n```\r\n\r\ncan be very confusion because `${input}` is related to current directory, but `run` starts from the parent directory...\r\n\r\nOf course a side effect is that\r\n\r\n```\r\ntxt_file = '../a.txt'\r\n[10: workdir='..']\r\nrun:\r\n    process ${txt_file}\r\n```\r\n\r\nwould also be wrong..."}}
{"actor":{"display_login":"BoPeng"}}