{"id":3137,"date":"2021-05-10T11:00:15","date_gmt":"2021-05-10T02:00:15","guid":{"rendered":"https:\/\/github.blog\/jp\/?p=3137"},"modified":"2021-05-10T10:42:27","modified_gmt":"2021-05-10T01:42:27","slug":"work-with-github-actions-in-your-terminal-with-github-cli","status":"publish","type":"post","link":"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/","title":{"rendered":"GitHub CLI\u3092\u4f7f\u3063\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u3067GitHub Actions\u3092\u64cd\u4f5c\u3059\u308b"},"content":{"rendered":"<p><span style=\"font-weight: 400;\"><code>gh<\/code>\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308a\u3001\u958b\u767a\u8005\u306fPull Request\u3001Issue\u3001Gist\u306a\u3069\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067GitHub\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u30021.9.0\u3067\u306f\u3001GitHub\u306e\u3055\u3089\u306b\u591a\u304f\u306e\u6a5f\u80fd\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u305d\u308c\u304c\u3001GitHub Actions\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Mislav\u6c0f\u304c\u6700\u8fd1\u306e<\/span><a href=\"https:\/\/github.blog\/2021-03-11-scripting-with-github-cli\/\"><span style=\"font-weight: 400;\">\u30d6\u30ed\u30b0<\/span><\/a><span style=\"font-weight: 400;\">\u3067\u7d39\u4ecb\u3057\u305f\u3068\u304a\u308a\u3001GitHub Actions\u5185\u3067gh\u3092\u4f7f\u3046\u3053\u3068\u306f\u65e2\u306b\u3067\u304d\u308b\u3088\u3046\u306b\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u4eca\u56de\u65b0\u305f\u306b\u8ffd\u52a0\u3055\u308c\u305f2\u3064\u306e\u30c8\u30c3\u30d7\u30ec\u30d9\u30eb\u306e\u30b3\u30de\u30f3\u30c9\u3001<code>gh run<\/code>\u3068<code>gh workflow<\/code>\u306b\u3088\u308a\u3001\u30ed\u30fc\u30ab\u30eb\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u5b9f\u884c\u3084\u30d5\u30a1\u30a4\u30eb\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u7c21\u5358\u306b\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/span><\/p>\n<h3 id=\"%e3%83%af%e3%83%bc%e3%82%af%e3%83%95%e3%83%ad%e3%83%bc%e3%81%ae%e5%ae%9f%e8%a1%8c%e7%8a%b6%e6%b3%81%e3%82%92%e6%8a%8a%e6%8f%a1%e3%81%99%e3%82%8b\">\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u5b9f\u884c\u72b6\u6cc1\u3092\u628a\u63e1\u3059\u308b<a href=\"#%e3%83%af%e3%83%bc%e3%82%af%e3%83%95%e3%83%ad%e3%83%bc%e3%81%ae%e5%ae%9f%e8%a1%8c%e7%8a%b6%e6%b3%81%e3%82%92%e6%8a%8a%e6%8f%a1%e3%81%99%e3%82%8b\" class=\"heading-link\" aria-label=\"\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u5b9f\u884c\u72b6\u6cc1\u3092\u628a\u63e1\u3059\u308b\" data-anchorjs-icon=\"#\" style=\"padding-left: 0.375em;\"><\/a><\/h3>\n<p><span style=\"font-weight: 400;\">\u6b63\u3057\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u3053\u3046\u3068\u52aa\u3081\u3066\u3082\u3001\u30d3\u30eb\u30c9\u304c\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u3002\u30aa\u30fc\u30d7\u30f3\u306aPull Request\u306b\u5bfe\u3059\u308b\u30a8\u30e9\u30fc\u3092\u628a\u63e1\u3059\u308b\u306b\u306f<code>gh pr checks<\/code>\u304c\u6709\u52b9\u3067\u3059\u304c\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u5168\u4f53\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u5b9f\u884c\u72b6\u6cc1\u3092\u628a\u63e1\u3059\u308b\u306b\u306f\u5f79\u7acb\u3061\u307e\u305b\u3093\u3002\u65b0\u3057\u3044<code>gh run list<\/code>\u3067\u306f\u3001Push\u3001Pull Request\u3001webhook\u3001\u3042\u308b\u3044\u306f\u30de\u30cb\u30e5\u30a2\u30eb\u3067\u306e\u30a4\u30d9\u30f3\u30c8\u5b9f\u884c\u306e\u3069\u3061\u3089\u3067\u30c8\u30ea\u30ac\u30fc\u3055\u308c\u305f\u304b\u306b\u304b\u304b\u308f\u3089\u305a\u3001\u3042\u3089\u3086\u308b\u7a2e\u985e\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u5b9f\u884c\u306e\u6982\u8981\u3092\u628a\u63e1\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3149\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig1.png?w=995&#038;resize=995%2C165\" alt=\"\" width=\"995\" height=\"165\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig1.png?w=995 995w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig1.png?w=300 300w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig1.png?w=768 768w\" sizes=\"auto, (max-width: 995px) 100vw, 995px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u307e\u305f\u3001\u9032\u884c\u4e2d\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u3088\u308a\u7c21\u5358\u306b\u628a\u63e1\u3067\u304d\u308b\u3088\u3046\u3001<code>gh run watch<\/code>\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u6a5f\u80fd\u3067\u306f\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u5b9f\u884c\u3092\u8ffd\u8de1\u3057\u305f\u308a\u3001\u4ed6\u306e\u30c4\u30fc\u30eb\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u5b9f\u884c\u306e\u7d42\u4e86\u3092\u901a\u77e5\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<code>gh run watch<\/code>\u3092Ubuntu\u306e<code>notify-send<\/code>\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3068\u7d44\u307f\u5408\u308f\u305b\u308c\u3070\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u304b\u3089\u96e2\u308c\u3066\u4ed6\u306e\u4f5c\u696d\u306b\u6642\u9593\u3092\u8cbb\u3084\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3150\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig2.gif?w=709&#038;resize=709%2C416\" alt=\"\" width=\"709\" height=\"416\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u5b9f\u884c\u304c\u7d42\u4e86\u3059\u308b\u3068\u3001\u3053\u306e\u3088\u3046\u306b\u77e5\u3089\u305b\u3066\u304f\u308c\u307e\u3059\u3002<\/span><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3151\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig3.png?w=628&#038;resize=628%2C130\" alt=\"\" width=\"628\" height=\"130\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig3.png?w=628 628w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig3.png?w=300 300w\" sizes=\"auto, (max-width: 628px) 100vw, 628px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">1\u4ef6\u306e\u5b9f\u884c\u3092\u8a73\u3057\u304f\u8abf\u3079\u308b\u306b\u306f<code>gh run view<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002\u4efb\u610f\u3067\u30b8\u30e7\u30d6\u306e\u500b\u3005\u306e\u30b9\u30c6\u30c3\u30d7\u306b\u3064\u3044\u3066\u3082\u8a73\u3057\u304f\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u3042\u308b\u30b3\u30fc\u30c9\u3067\u6587\u6cd5\u30c1\u30a7\u30c3\u30ab\u30fc\u304c\u5931\u6557\u3057\u305f\u7406\u7531\u3092\u628a\u63e1\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3141\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig4.png?w=752&#038;resize=752%2C600\" alt=\"\" width=\"752\" height=\"600\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig4.png?w=752 752w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig4.png?w=300 300w\" sizes=\"auto, (max-width: 752px) 100vw, 752px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u305d\u308c\u3067\u3082\u308f\u304b\u3089\u306a\u3044\u30a8\u30e9\u30fc\u306e\u5834\u5408\u306f\u3001<code>grep<\/code>\u306a\u3069\u306e\u30c4\u30fc\u30eb\u3068<code>gh run view --log<\/code>\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u5b9f\u884c\u306e\u30ed\u30b0\u51fa\u529b\u5168\u4f53\u3092\u691c\u7d22\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30d3\u30eb\u30c9\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u5168\u4f53\u306e\u30a8\u30e9\u30fc\u3092\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u4ee5\u4e0b\u306e\u5834\u5408\u3001Ubuntu\u3068macOS\u3067\u30d1\u30cb\u30c3\u30af\u304c\u8d77\u304d\u3066\u3044\u307e\u3059\u304c\u3001Windows\u3067\u306f\u8d77\u304d\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3142\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig5.png?w=933&#038;resize=933%2C127\" alt=\"\" width=\"933\" height=\"127\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig5.png?w=933 933w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig5.png?w=300 300w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig5.png?w=768 768w\" sizes=\"auto, (max-width: 933px) 100vw, 933px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u307e\u305f\u3001<code>--log<\/code>\u3067\u306f\u60c5\u5831\u304c\u591a\u3059\u304e\u308b\u5834\u5408\u3001<code>gh run --log-failed<\/code>\u3092\u4f7f\u3046\u3068\u3001\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u5404\u30b9\u30c6\u30c3\u30d7\u306e\u30ed\u30b0\u884c\u306e\u307f\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\u81ea\u5206\u3067<code>grep<\/code>\u3092\u5b9f\u884c\u3057\u306a\u304f\u3066\u3082\u3001\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u30b9\u30c6\u30c3\u30d7\u306e\u30ed\u30b0\u306b\u3059\u3050\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u305f\u3081\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u3053\u3053\u3067\u306f<code>--log-failed<\/code>\u3092\u4f7f\u3063\u3066\u3001\u3059\u3079\u3066\u306e\u30b9\u30c6\u30c3\u30d7\u306e\u30ed\u30b0\u51fa\u529b\u3067\u306f\u306a\u304f\u3001\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u30b9\u30c6\u30c3\u30d7\u306e\u30ed\u30b0\u51fa\u529b\u306e\u307f\u3092\u898b\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3143\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig6.png?w=978&#038;resize=978%2C620\" alt=\"\" width=\"978\" height=\"620\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig6.png?w=978 978w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig6.png?w=300 300w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig6.png?w=768 768w\" sizes=\"auto, (max-width: 978px) 100vw, 978px\" \/><\/p>\n<p><span style=\"font-weight: 400;\"><code>gh run<\/code>\u306f\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u5b9f\u884c\u4e2d\u306b\u751f\u6210\u3055\u308c\u305f\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8\u306b\u3064\u3044\u3066\u3082\u628a\u63e1\u3057\u3066\u304a\u308a\u3001\u305d\u306e\u767a\u898b\u3084\u53d6\u5f97\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/span><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3146\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig7.png?w=826&#038;resize=826%2C302\" alt=\"\" width=\"826\" height=\"302\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig7.png?w=826 826w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig7.png?w=300 300w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig7.png?w=768 768w\" sizes=\"auto, (max-width: 826px) 100vw, 826px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u306b\u306f\u3001<code>gh run download -n tps-report<\/code>\u3067\u540d\u524d\u3092\u6307\u5b9a\u3059\u308b\u304b\u3001\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30bb\u30ec\u30af\u30bf\u30fc\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3147\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig8.gif?w=709&#038;resize=709%2C416\" alt=\"\" width=\"709\" height=\"416\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u6700\u5f8c\u306b\u3001\u5b9f\u884c\u306e\u65ad\u7d9a\u7684\u306a\u30a8\u30e9\u30fc\u304c\u7591\u308f\u308c\u308b\u5834\u5408\u3084\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u7b87\u6240\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f\u3001<code>gh run rerun<\/code>\u3092\u4f7f\u3063\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u9000\u51fa\u305b\u305a\u306b\u518d\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3139\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig9.gif?w=709&#038;resize=709%2C416\" alt=\"\" width=\"709\" height=\"416\" \/><\/p>\n<h3 id=\"%e3%83%af%e3%83%bc%e3%82%af%e3%83%95%e3%83%ad%e3%83%bc%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e7%ae%a1%e7%90%86%e3%82%82%e7%b0%a1%e5%8d%98%e3%81%ab\">\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30d5\u30a1\u30a4\u30eb\u306e\u7ba1\u7406\u3082\u7c21\u5358\u306b<a href=\"#%e3%83%af%e3%83%bc%e3%82%af%e3%83%95%e3%83%ad%e3%83%bc%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e7%ae%a1%e7%90%86%e3%82%82%e7%b0%a1%e5%8d%98%e3%81%ab\" class=\"heading-link\" aria-label=\"\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30d5\u30a1\u30a4\u30eb\u306e\u7ba1\u7406\u3082\u7c21\u5358\u306b\" data-anchorjs-icon=\"#\" style=\"padding-left: 0.375em;\"><\/a><\/h3>\n<p><span style=\"font-weight: 400;\">GitHub Actions\u3067\u306e\u5b9f\u884c\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306e<code>.github\/workflows<\/code>\u306b\u3042\u308bYAML\u5f62\u5f0f\u306e<\/span><a href=\"https:\/\/docs.github.com\/ja\/actions\/reference\/workflow-syntax-for-github-actions\"><span style=\"font-weight: 400;\">\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30d5\u30a1\u30a4\u30eb<\/span><\/a><span style=\"font-weight: 400;\">\u3067\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u540d\u524d\u3001\u52d5\u4f5c\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5b9f\u884c\u3055\u305b\u308b\u30a4\u30d9\u30f3\u30c8\u306e\u7a2e\u985e\u306a\u3069\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><code>gh workflow view<\/code>\u3092\u4f7f\u3046\u3068\u3001\u6700\u8fd1\u5b9f\u884c\u3055\u308c\u305f\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u6982\u8981\u3092\u78ba\u8a8d\u3057\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u671f\u5f85\u3069\u304a\u308a\u306b\u52d5\u4f5c\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<code>gh workflow view --yaml<\/code>\u3092\u4f7f\u3046\u3068\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u51e6\u7406\u5185\u5bb9\u3092\u8272\u4ed8\u304d\u3067\u8868\u793a\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3140\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig10.png?w=715&#038;resize=715%2C299\" alt=\"\" width=\"715\" height=\"299\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig10.png?w=715 715w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig10.png?w=300 300w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3144\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig11.png?w=700&#038;resize=700%2C406\" alt=\"\" width=\"700\" height=\"406\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig11.png?w=700 700w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig11.png?w=300 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u6642\u306b\u306f\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u304c\u4e2d\u65ad\u3057\u305f\u308a\u3001\u51e6\u7406\u4e2d\u3067\u3042\u3063\u305f\u308a\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u3088\u3046\u306a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u5b8c\u5168\u306b\u524a\u9664\u3057\u306a\u304f\u3066\u3082\u7ba1\u7406\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3001<code>gh workflow enable<\/code>\u3068gh <code>workflow disable<\/code>\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3145\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig12.gif?w=709&#038;resize=709%2C416\" alt=\"\" width=\"709\" height=\"416\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u591a\u304f\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306f\u3001Pull Request\u3084Push\u3055\u308c\u305f\u30d6\u30e9\u30f3\u30c1\u306b\u3088\u3063\u3066\u5b9f\u884c\u304c\u30c8\u30ea\u30ac\u30fc\u3055\u308c\u307e\u3059\u304c\u3001<\/span><a href=\"https:\/\/docs.github.com\/ja\/actions\/reference\/events-that-trigger-workflows#workflow_dispatch\"><span style=\"font-weight: 400;\">workflow_dispatch<\/span><\/a><span style=\"font-weight: 400;\">\u30a4\u30d9\u30f3\u30c8\u3092\u4f7f\u3046\u3068\u3001\u30b3\u30de\u30f3\u30c9\u3067\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u30b3\u30de\u30f3\u30c9\u3067\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5b9f\u884c\u3057\u3066\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u30bf\u30b9\u30af\u3092\u884c\u3063\u305f\u308a\u3001\u4f5c\u696d\u304c\u307e\u3060\u9032\u884c\u4e2d\u306e\u6bb5\u968e\u3067\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u624b\u52d5Dispatch\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<code>gh workflow run<\/code>\u3092\u4f7f\u3063\u3066\u3001\u3053\u306e\u30a4\u30d9\u30f3\u30c8\u306b\u5bfe\u5fdc\u3057\u305f\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u8d77\u52d5\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u305f\u3081\u3001<code>workflow_dispatch<\/code>\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u64cd\u4f5c\u3084\u30b9\u30af\u30ea\u30d7\u30c8\u4f5c\u6210\u304c\u3088\u308a\u7c21\u5358\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">gh workflow run\u304c\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30d5\u30a1\u30a4\u30eb\u306e\u958b\u767a\u306b\u3069\u306e\u3088\u3046\u306b\u5f79\u7acb\u3064\u304b\u306b\u3064\u3044\u3066\u3001\u30c4\u30fc\u30eb\u30c1\u30a7\u30fc\u30f3\u306b\u7d44\u307f\u8fbc\u3080\u4f8b\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u53d7\u4fe1\u3057\u305fPull Request\u304c\u7279\u5b9a\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u81ea\u52d5\u5316\u3092\u5b9f\u884c\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u306fpr-check.yml\u3068\u3044\u3046\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3063\u3066\u3001\u53d7\u4fe1\u3057\u305fPull Request\u306b\u672c\u6587\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/span><\/p>\n<pre>name: Pull Request Check\r\n\r\non:\r\n  workflow_dispatch:\r\n    inputs:\r\n      body:\r\n        default: \"\"\r\n      test:\r\n        default: \"false\"\r\n  pull_request_target:\r\n\r\njobs:\r\n  check-body-length:\r\n    runs-on: ubuntu-latest\r\n    steps:\r\n      - name: check\r\n        env:\r\n          PRNUM: ${{ github.event.pull_request.number }}\r\n          PRBODY: ${{ github.event.pull_request.body }}\r\n          TESTBODY: ${{ github.event.inputs.body }}\r\n          TEST: ${{ github.event.inputs.test }}\r\n        run: |\r\n          if [ \"$TEST\" = \"true\" ]\r\n          then\r\n            PRBODY=$TESTBODY\r\n          fi\r\n\r\n          commentPR () {\r\n            if [ \"$TEST\" = \"true\" ]\r\n            then\r\n              echo \"would comment: '${1}'\"\r\n            else\r\n              gh pr comment $PRNUM -b \"${1}\"\r\n            fi\r\n          }\r\n\r\n          if [ \"$PRBODY\" = \"\" ]\r\n          then\r\n            commentPR \"Thanks! Please add a body so we can better review your contribution.\"\r\n          fi<\/pre>\n<p><span style=\"font-weight: 400;\">(<\/span><a href=\"https:\/\/gist.github.com\/vilmibm\/fd84ae64bce45f07004487f9de38d57f\"><span style=\"font-weight: 400;\">\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092Gist\u3067\u898b\u308b<\/span><\/a><span style=\"font-weight: 400;\">)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u3053\u308c\u306f<code>pull_request_target<\/code>\u3068<code>workflow_dispatch<\/code>\u306e\u4e21\u65b9\u306b\u5fdc\u7b54\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u3067Pull Request\u304c\u30aa\u30fc\u30d7\u30f3\u3055\u308c\u305f\u308a\u3001\u624b\u52d5\u3067\u8d77\u52d5\u3055\u308c\u305f\u308a\u3059\u308b\u3068\u3001\u5e38\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u624b\u52d5\u3067\u8d77\u52d5\u3055\u308c\u305f\u5834\u5408\u306f\u3001\u30e2\u30c3\u30afPull Request\u306e\u672c\u6587\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u30c6\u30b9\u30c8\u5165\u529b\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3148\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig13.png?w=713&#038;resize=713%2C161\" alt=\"\" width=\"713\" height=\"161\" srcset=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig13.png?w=713 713w, https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig13.png?w=300 300w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/p>\n<p><span style=\"font-weight: 400;\"><code>gh run view --log<\/code>\u306e\u51fa\u529b\u3092\u898b\u3066\u3001\u30b3\u30fc\u30c9\u304c\u671f\u5f85\u3069\u304a\u308a\u306e\u52d5\u4f5c\u3092\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u4f7f\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u3055\u3089\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u5316\u3057\u305f\u308a\u3001\u30a8\u30a4\u30ea\u30a2\u30b9\u3092\u4f7f\u3063\u3066\u52b9\u7387\u5316\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u4ed5\u4e8b\u3092\u3057\u306a\u304c\u3089\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3053\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5b9f\u884c\u3067\u304d\u308b\u305f\u3081\u3001<code>if [ $PRBODY = true ]<\/code>\u6761\u4ef6\u3092\u5909\u66f4\u3057\u3066\u3082\u3063\u3068\u8907\u96d1\u306a\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<h3 id=\"%e3%81%94%e6%84%8f%e8%a6%8b%e3%82%92%e3%81%8a%e5%af%84%e3%81%9b%e3%81%8f%e3%81%a0%e3%81%95%e3%81%84\">\u3054\u610f\u898b\u3092\u304a\u5bc4\u305b\u304f\u3060\u3055\u3044<a href=\"#%e3%81%94%e6%84%8f%e8%a6%8b%e3%82%92%e3%81%8a%e5%af%84%e3%81%9b%e3%81%8f%e3%81%a0%e3%81%95%e3%81%84\" class=\"heading-link\" aria-label=\"\u3054\u610f\u898b\u3092\u304a\u5bc4\u305b\u304f\u3060\u3055\u3044\" data-anchorjs-icon=\"#\" style=\"padding-left: 0.375em;\"><\/a><\/h3>\n<p><span style=\"font-weight: 400;\"><code>gh run<\/code>\u3084<code>gh workflow<\/code>\u3092\u4f7f\u3063\u3066\u3069\u3093\u306a\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u3001<\/span><a href=\"https:\/\/github.com\/cli\/cli\/discussions\/3422\"><span style=\"font-weight: 400;\">\u30c7\u30a3\u30b9\u30ab\u30c3\u30b7\u30e7\u30f3\u30d5\u30a9\u30fc\u30e9\u30e0<\/span><\/a><span style=\"font-weight: 400;\">\u3067\u304a\u77e5\u3089\u305b\u304f\u3060\u3055\u3044\uff01\u7686\u3055\u3093\u304b\u3089\u306e\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u304a\u5f85\u3061\u3057\u3066\u3044\u307e\u3059\u3002GitHub CLI\u3092\u307e\u3060\u304a\u4f7f\u3044\u3067\u306a\u3044\u65b9\u306f\u3001\u305c\u3072<\/span><a href=\"https:\/\/cli.github.com\/\"><span style=\"font-weight: 400;\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/a><span style=\"font-weight: 400;\">\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u5c06\u6765\u7684\u306b\u306f\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3084\u30c7\u30d7\u30ed\u30a4\u3092\u3088\u308a\u7c21\u5358\u306b\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002\u4eca\u306e\u3068\u3053\u308d\u306f\u3001GitHub 1.9.0\u306e\u3059\u3079\u3066\u306e\u65b0\u6a5f\u80fd\u3092\u304a\u697d\u3057\u307f\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>gh\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308a\u3001\u958b\u767a\u8005\u306fPull Request\u3001Issue\u3001Gist\u306a\u3069\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067GitHub\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u30021.9.0\u3067\u306f\u3001GitHub\u306e\u3055\u3089\u306b\u591a\u304f\u306e\u6a5f\u80fd\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"author":1885,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false},"categories":[68,10],"tags":[],"coauthors":[],"class_list":["post-3137","post","type-post","status-publish","format-standard","hentry","category-client-apps","category-features"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>GitHub CLI\u3092\u4f7f\u3063\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u3067GitHub Actions\u3092\u64cd\u4f5c\u3059\u308b - GitHub\u30d6\u30ed\u30b0<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GitHub CLI\u3092\u4f7f\u3063\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u3067GitHub Actions\u3092\u64cd\u4f5c\u3059\u308b\" \/>\n<meta property=\"og:description\" content=\"gh\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308a\u3001\u958b\u767a\u8005\u306fPull Request\u3001Issue\u3001Gist\u306a\u3069\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067GitHub\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u30021.9.0\u3067\u306f\u3001GitHub\u306e\u3055\u3089\u306b\u591a\u304f\u306e\u6a5f\u80fd\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/\" \/>\n<meta property=\"og:site_name\" content=\"GitHub\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-10T02:00:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig1.png?w=995\" \/>\n<meta name=\"author\" content=\"Nate Smith\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nate Smith\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\\\/\"},\"author\":{\"name\":\"Nate Smith\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#\\\/schema\\\/person\\\/0c383b487f6c041f4bceaa8cb1d1eab2\"},\"headline\":\"GitHub CLI\u3092\u4f7f\u3063\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u3067GitHub Actions\u3092\u64cd\u4f5c\u3059\u308b\",\"datePublished\":\"2021-05-10T02:00:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\\\/\"},\"wordCount\":54,\"image\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/github.blog\\\/jp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/05\\\/GitHub-Actions-CLI-fig1.png?w=995\",\"articleSection\":[\"Client apps\",\"Features\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\\\/\",\"url\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\\\/\",\"name\":\"GitHub CLI\u3092\u4f7f\u3063\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u3067GitHub Actions\u3092\u64cd\u4f5c\u3059\u308b - GitHub\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/github.blog\\\/jp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/05\\\/GitHub-Actions-CLI-fig1.png?w=995\",\"datePublished\":\"2021-05-10T02:00:15+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#\\\/schema\\\/person\\\/0c383b487f6c041f4bceaa8cb1d1eab2\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/github.blog\\\/jp\\\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\\\/#primaryimage\",\"url\":\"https:\\\/\\\/github.blog\\\/jp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/05\\\/GitHub-Actions-CLI-fig1.png?w=995\",\"contentUrl\":\"https:\\\/\\\/github.blog\\\/jp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/05\\\/GitHub-Actions-CLI-fig1.png?w=995\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/github.blog\\\/jp\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GitHub CLI\u3092\u4f7f\u3063\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u3067GitHub Actions\u3092\u64cd\u4f5c\u3059\u308b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#website\",\"url\":\"https:\\\/\\\/github.blog\\\/jp\\\/\",\"name\":\"GitHub\u30d6\u30ed\u30b0\",\"description\":\"\u88fd\u54c1\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3084\u958b\u767a\u306b\u95a2\u3059\u308b\u30a2\u30a4\u30c7\u30a3\u30a2\u3084\u30a4\u30f3\u30b9\u30d4\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3001\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u7686\u3055\u3093\u306b\u5f79\u7acb\u3064\u60c5\u5831\u3092\u767a\u4fe1\u3057\u307e\u3059\u3002\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/github.blog\\\/jp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#\\\/schema\\\/person\\\/0c383b487f6c041f4bceaa8cb1d1eab2\",\"name\":\"Nate Smith\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/03733de5d6809eb2e99fa322f8e07e9f52dcbb859218e3730ebd65ccfcef18ff?s=96&d=mm&r=g6f4130ca6ceaf034c33df6e4a4c754f8\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/03733de5d6809eb2e99fa322f8e07e9f52dcbb859218e3730ebd65ccfcef18ff?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/03733de5d6809eb2e99fa322f8e07e9f52dcbb859218e3730ebd65ccfcef18ff?s=96&d=mm&r=g\",\"caption\":\"Nate Smith\"},\"url\":\"https:\\\/\\\/github.blog\\\/jp\\\/author\\\/vilmibm\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"GitHub CLI\u3092\u4f7f\u3063\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u3067GitHub Actions\u3092\u64cd\u4f5c\u3059\u308b - GitHub\u30d6\u30ed\u30b0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/","og_locale":"en_US","og_type":"article","og_title":"GitHub CLI\u3092\u4f7f\u3063\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u3067GitHub Actions\u3092\u64cd\u4f5c\u3059\u308b","og_description":"gh\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308a\u3001\u958b\u767a\u8005\u306fPull Request\u3001Issue\u3001Gist\u306a\u3069\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067GitHub\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u30021.9.0\u3067\u306f\u3001GitHub\u306e\u3055\u3089\u306b\u591a\u304f\u306e\u6a5f\u80fd\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002","og_url":"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/","og_site_name":"GitHub\u30d6\u30ed\u30b0","article_published_time":"2021-05-10T02:00:15+00:00","og_image":[{"url":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig1.png?w=995","type":"","width":"","height":""}],"author":"Nate Smith","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Nate Smith","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/#article","isPartOf":{"@id":"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/"},"author":{"name":"Nate Smith","@id":"https:\/\/github.blog\/jp\/#\/schema\/person\/0c383b487f6c041f4bceaa8cb1d1eab2"},"headline":"GitHub CLI\u3092\u4f7f\u3063\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u3067GitHub Actions\u3092\u64cd\u4f5c\u3059\u308b","datePublished":"2021-05-10T02:00:15+00:00","mainEntityOfPage":{"@id":"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/"},"wordCount":54,"image":{"@id":"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/#primaryimage"},"thumbnailUrl":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig1.png?w=995","articleSection":["Client apps","Features"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/","url":"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/","name":"GitHub CLI\u3092\u4f7f\u3063\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u3067GitHub Actions\u3092\u64cd\u4f5c\u3059\u308b - GitHub\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/github.blog\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/#primaryimage"},"image":{"@id":"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/#primaryimage"},"thumbnailUrl":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig1.png?w=995","datePublished":"2021-05-10T02:00:15+00:00","author":{"@id":"https:\/\/github.blog\/jp\/#\/schema\/person\/0c383b487f6c041f4bceaa8cb1d1eab2"},"breadcrumb":{"@id":"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/#primaryimage","url":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig1.png?w=995","contentUrl":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2021\/05\/GitHub-Actions-CLI-fig1.png?w=995"},{"@type":"BreadcrumbList","@id":"https:\/\/github.blog\/jp\/2021-05-10-work-with-github-actions-in-your-terminal-with-github-cli\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/github.blog\/jp\/"},{"@type":"ListItem","position":2,"name":"GitHub CLI\u3092\u4f7f\u3063\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u3067GitHub Actions\u3092\u64cd\u4f5c\u3059\u308b"}]},{"@type":"WebSite","@id":"https:\/\/github.blog\/jp\/#website","url":"https:\/\/github.blog\/jp\/","name":"GitHub\u30d6\u30ed\u30b0","description":"\u88fd\u54c1\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3084\u958b\u767a\u306b\u95a2\u3059\u308b\u30a2\u30a4\u30c7\u30a3\u30a2\u3084\u30a4\u30f3\u30b9\u30d4\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3001\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u7686\u3055\u3093\u306b\u5f79\u7acb\u3064\u60c5\u5831\u3092\u767a\u4fe1\u3057\u307e\u3059\u3002","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/github.blog\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/github.blog\/jp\/#\/schema\/person\/0c383b487f6c041f4bceaa8cb1d1eab2","name":"Nate Smith","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/03733de5d6809eb2e99fa322f8e07e9f52dcbb859218e3730ebd65ccfcef18ff?s=96&d=mm&r=g6f4130ca6ceaf034c33df6e4a4c754f8","url":"https:\/\/secure.gravatar.com\/avatar\/03733de5d6809eb2e99fa322f8e07e9f52dcbb859218e3730ebd65ccfcef18ff?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/03733de5d6809eb2e99fa322f8e07e9f52dcbb859218e3730ebd65ccfcef18ff?s=96&d=mm&r=g","caption":"Nate Smith"},"url":"https:\/\/github.blog\/jp\/author\/vilmibm\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pasZHI-OB","_links":{"self":[{"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/posts\/3137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/users\/1885"}],"replies":[{"embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/comments?post=3137"}],"version-history":[{"count":14,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/posts\/3137\/revisions"}],"predecessor-version":[{"id":3165,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/posts\/3137\/revisions\/3165"}],"wp:attachment":[{"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/media?parent=3137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/categories?post=3137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/tags?post=3137"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/coauthors?post=3137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}