{"@attributes":{"version":"2.0"},"channel":{"title":"Github-Action on \u00d6zkan Pakdil Software Engineer","link":"https:\/\/ozkanpakdil.github.io\/categories\/github-action\/","description":"Recent content in Github-Action on \u00d6zkan Pakdil Software Engineer","image":{"title":"\u00d6zkan Pakdil Software Engineer","url":"https:\/\/ozkanpakdil.github.io\/images\/papermod-cover.png","link":"https:\/\/ozkanpakdil.github.io\/images\/papermod-cover.png"},"generator":"Hugo -- 0.148.2","language":"en","copyright":"\u00d6zkan Pakdil","lastBuildDate":"Fri, 11 Mar 2022 18:05:30 +0000","item":{"title":"Get github action url from bash script","link":"https:\/\/ozkanpakdil.github.io\/posts\/my_collections\/2022\/2022-03-11-get-githubaction-url-from-bash\/","pubDate":"Fri, 11 Mar 2022 18:05:30 +0000","guid":"https:\/\/ozkanpakdil.github.io\/posts\/my_collections\/2022\/2022-03-11-get-githubaction-url-from-bash\/","description":"<h2 id=\"getting-the-github-action-job-url-from-bash\">Getting the github action job url from bash<\/h2>\n<p>I have been trying to link rest testing framework pages to the connect github action job<\/p>\n<div class=\"highlight\"><pre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"display:flex;\"><span>BUILD_URL<span style=\"color:#f92672\">=<\/span><span style=\"color:#e6db74\">&#34;<\/span><span style=\"color:#e6db74\">${<\/span>GITHUB_SERVER_URL<span style=\"color:#e6db74\">}<\/span><span style=\"color:#e6db74\">\/<\/span><span style=\"color:#e6db74\">${<\/span>GITHUB_REPOSITORY<span style=\"color:#e6db74\">}<\/span><span style=\"color:#e6db74\">\/actions\/runs\/<\/span><span style=\"color:#e6db74\">${<\/span>GITHUB_RUN_ID<span style=\"color:#e6db74\">}<\/span><span style=\"color:#e6db74\">&#34;<\/span>\n<\/span><\/span><span style=\"display:flex;\"><span>printf <span style=\"color:#e6db74\">&#34;[github action](<\/span>$BUILD_URL<span style=\"color:#e6db74\">)  :point_left: \\n&#34;<\/span> &gt;&gt; test-result.md\n<\/span><\/span><\/code><\/pre><\/div><p>here is the example result <a href=\"https:\/\/ozkanpakdil.github.io\/microservicetests\/2022-03-11-microservice-framework-test-11.html\">page<\/a> check the footer area. like image below\n<img alt=\"footer area\" loading=\"lazy\" src=\"https:\/\/user-images.githubusercontent.com\/604405\/157956307-336b2d30-5d4a-4399-b44a-b6619eb34cb1.png\"><\/p>\n<p><a href=\"https:\/\/github.com\/ozkanpakdil\/test-microservice-frameworks\/blob\/6fb081cf3262d4a56dfab3676e3f6e12c2fa4f3f\/runGatling.sh#L132\">full bash script<\/a>,\nin case you want to generate the url from yml<\/p>\n<div class=\"highlight\"><pre tabindex=\"0\" style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;\"><code class=\"language-yml\" data-lang=\"yml\"><span style=\"display:flex;\"><span><span style=\"color:#ae81ff\">${{ github.server_url }}\/${{ github.repository }}\/actions\/runs\/${{ github.run_id }}<\/span>\n<\/span><\/span><\/code><\/pre><\/div><p><a href=\"https:\/\/github.community\/t\/get-runs-url\/16921\">further details<\/a><\/p>"}}}