{"id":1409,"date":"2024-06-02T22:56:05","date_gmt":"2024-06-02T22:56:05","guid":{"rendered":""},"modified":"2024-06-05T06:12:46","modified_gmt":"2024-06-04T22:12:46","slug":"%e8%bf%98%e4%b8%8d%e4%bc%9a%e7%94%a8-github-actions-%ef%bc%9f%e7%9c%8b%e7%9c%8b%e8%bf%99%e7%af%87","status":"publish","type":"post","link":"https:\/\/www.lccc.top\/?p=1409","title":{"rendered":"\u8fd8\u4e0d\u4f1a\u7528 GitHub Actions \uff1f\u770b\u770b\u8fd9\u7bc7"},"content":{"rendered":"<td class=\"d-block comment-body markdown-body  js-comment-body\">\n<h2 dir=\"auto\">\u524d\u8a00<\/h2>\n<p dir=\"auto\">\u5728\u4e0a\u7bc7<a href=\"https:\/\/github.com\/mqyqingfeng\/Blog\/issues\/236\" data-hovercard-type=\"issue\" data-hovercard-url=\"\/mqyqingfeng\/Blog\/issues\/236\/hovercard\">\u300a\u4e00\u7bc7\u6559\u4f60\u4ee3\u7801\u540c\u6b65 GitHub \u548c Gitee\u300b<\/a>\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528 GitHub Actions \u89e3\u51b3\u4e86 GitHub \u4ee3\u7801\u81ea\u52a8\u540c\u6b65 Gitee \u7684\u95ee\u9898\uff0c\u8fd9\u7bc7\u6211\u7ffb\u8bd1\u6574\u7406\u4e86 GitHub Actions \u7684<a href=\"https:\/\/docs.github.com\/en\/actions\/learn-github-actions\/understanding-github-actions\">\u5b98\u65b9\u6587\u6863<\/a>\uff0c\u4e3a\u5927\u5bb6\u4ecb\u7ecd GitHub Actions \u7684\u540c\u65f6\uff0c\u5e76\u8bb2\u89e3\u4e0a\u7bc7\u540c\u6b65 Gitee \u7684 Actions \u4ee3\u7801\u3002<\/p>\n<h2 dir=\"auto\">GitHub Actions<\/h2>\n<p dir=\"auto\">GitHub Actions \u662f\u4e00\u4e2a\u6301\u7eed\u96c6\u6210 (Continuous integration)\u548c\u6301\u7eed\u4ea4\u4ed8 (Continuous delivery)\u7684\u5e73\u53f0\uff0c\u5b83\u53ef\u4ee5\u505a\u5230\u81ea\u52a8\u5316\u6784\u5efa\u3001\u6d4b\u8bd5\u3001\u90e8\u7f72\u3002\u4f60\u53ef\u4ee5\u521b\u5efa\u5de5\u4f5c\u6d41\uff0c\u6784\u5efa\u548c\u6d4b\u8bd5\u6bcf\u4e00\u4e2a pull request \u6216\u8005\u90e8\u7f72\u5408\u5e76\u540e\u7684\u4ee3\u7801\u5230\u751f\u4ea7\u73af\u5883\u3002<\/p>\n<p dir=\"auto\">GitHub Actions \u53ef\u4ee5\u5728\u4f60\u7684\u4ee3\u7801\u4ed3\u5e93\u53d1\u751f\u67d0\u4e2a\u4e8b\u4ef6\u65f6\u8fd0\u884c\u4e00\u4e2a\u5de5\u4f5c\u6d41\u3002\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5f53\u6709\u4eba\u7ed9\u4f60\u7684\u4ee3\u7801\u4ed3\u5e93\u65b0\u5efa\u4e86\u4e00\u4e2a issue\uff0c\u4f60\u53ef\u4ee5\u8dd1\u4e00\u4e2a\u5de5\u4f5c\u6d41\u81ea\u52a8\u7684\u6dfb\u52a0\u5408\u9002\u7684\u6807\u7b7e\u3002<\/p>\n<p dir=\"auto\">GitHub \u63d0\u4f9b\u4e86 Linux\u3001Windows\u3001\u548c macOS \u865a\u62df\u673a\u8fd0\u884c\u4f60\u7684\u5de5\u4f5c\u6d41\uff0c\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u81ea\u5b9a\u4e49\u8fd0\u884c\u73af\u5883\u3002<\/p>\n<h2 dir=\"auto\">GitHub Actions \u7ec4\u4ef6<\/h2>\n<p dir=\"auto\">\u4f60\u53ef\u4ee5\u914d\u7f6e\u4e00\u4e2a GitHub Actions <strong>\u5de5\u4f5c\u6d41\uff08workflow<\/strong>\uff09\uff0c\u5b83\u4f1a\u5728\u4f60\u7684\u4ed3\u5e93\u53d1\u751f\u67d0\u4e2a\u4e8b\u4ef6\u65f6\u88ab\u89e6\u53d1\uff0c\u5c31\u6bd4\u5982\u4e00\u4e2a pull request \u6216\u8005\u4e00\u4e2a issue \u88ab\u521b\u5efa\u7684\u65f6\u5019\u3002<\/p>\n<p dir=\"auto\">\u4f60\u7684\u5de5\u4f5c\u6d41\u5305\u542b\u4e00\u4e2a\u6216\u8005\u591a\u4e2a<strong>\u4efb\u52a1\uff08jobs\uff09<\/strong>\uff0c \u5b83\u4eec\u53ef\u4ee5\u5e76\u884c\u6216\u8005\u4e32\u884c\u6267\u884c\u3002\u6bcf\u4e00\u4e2a\u4efb\u52a1\uff08jobs\uff09\u90fd\u4f1a\u5728\u5b83\u81ea\u5df1\u7684\u865a\u62df\u673a<strong>\u8fd0\u884c\u5668(runner)\u4e0a\uff0c\u4efb\u52a1\u53ef\u4ee5\u6709\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\u6b65\u9aa4\uff08steps\uff09<\/strong>\uff0c\u53ef\u4ee5\u8fd0\u884c\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7684\u811a\u672c\u6216\u8005\u8fd0\u884c\u4e00\u4e2a<strong>\u52a8\u4f5c\uff08action\uff09<\/strong>\uff0c\u6240\u8c13\u52a8\u4f5c\uff08action\uff09\u662f\u4e00\u4e2a\u53ef\u590d\u7528\u7684\u6269\u5c55\uff0c\u7528\u4e8e\u7b80\u5316\u4f60\u7684\u5de5\u4f5c\u6d41\u3002<\/p>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"\/\/www.lccc.top\/wp-content\/uploads\/pic\/mqyqingfen\/6910c619dfa54e684feb34d0cc325a87b1d3584a.jpg\"><img decoding=\"async\" src=\"\/\/www.lccc.top\/wp-content\/uploads\/pic\/mqyqingfen\/6910c619dfa54e684feb34d0cc325a87b1d3584a.jpg\" alt=\"\" data-canonical-src=\"https:\/\/cdn.jsdelivr.net\/gh\/mqyqingfeng\/picture\/1639657097495-606f3b09-ad7e-4e6e-99fc-56c0545e4c6c.png\" style=\"max-width: 100%;\"><\/a><\/p>\n<h3 dir=\"auto\">Workflows\uff08\u5de5\u4f5c\u6d41\uff09<\/h3>\n<p dir=\"auto\">\u5de5\u4f5c\u6d41\u662f\u4e00\u4e2a\u53ef\u914d\u7f6e\u7684\u81ea\u52a8\u5316\u7684\u7a0b\u5e8f\u3002\u521b\u5efa\u4e00\u4e2a\u5de5\u4f5c\u6d41\uff0c\u4f60\u9700\u8981\u5b9a\u4e49\u4e00\u4e2a YAML \u6587\u4ef6\uff0c\u5f53\u4f60\u7684\u4ed3\u5e93\u89e6\u53d1\u67d0\u4e2a\u4e8b\u4ef6\u7684\u65f6\u5019\uff0c\u5de5\u4f5c\u6d41\u5c31\u4f1a\u8fd0\u884c\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u624b\u52a8\u89e6\u53d1\uff0c\u6216\u8005\u5b9a\u4e49\u4e00\u4e2a\u65f6\u95f4\u8868\u3002<\/p>\n<p dir=\"auto\">\u4e00\u4e2a\u4ed3\u5e93\u53ef\u4ee5\u521b\u5efa\u591a\u4e2a\u5de5\u4f5c\u6d41\uff0c\u6bcf\u4e00\u4e2a\u90fd\u6267\u884c\u4e0d\u540c\u7684\u6b65\u9aa4\uff0c\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u4e00\u4e2a\u5de5\u4f5c\u6d41\u7528\u4e8e\u6784\u5efa\u548c\u6d4b\u8bd5 pull request\uff0c\u4e00\u4e2a\u7528\u4e8e\u90e8\u7f72\u4f60\u7684\u5e94\u7528\uff0c\u518d\u6765\u4e00\u4e2a\uff0c\u5f53\u6709\u4eba\u65b0\u5efa issue \u7684\u65f6\u5019\u81ea\u52a8\u6dfb\u52a0\u4e00\u4e2a\u6807\u7b7e\u3002<\/p>\n<p dir=\"auto\">\u4f60\u4e5f\u53ef\u4ee5\u5728\u4e00\u4e2a\u5de5\u4f5c\u6d41\u4e2d\u5f15\u7528\u53e6\u5916\u4e00\u4e2a\u5de5\u4f5c\u6d41\uff0c\u67e5\u770b\u300c<a href=\"https:\/\/docs.github.com\/en\/actions\/learn-github-actions\/reusing-workflows\">\u53ef\u590d\u7528\u5de5\u4f5c\u6d41<\/a>\u300d\u3002<\/p>\n<h3 dir=\"auto\">\u4e8b\u4ef6\uff08Events\uff09<\/h3>\n<p dir=\"auto\">\u4e8b\u4ef6\u662f\u6307\u4ed3\u5e93\u89e6\u53d1\u8fd0\u884c\u5de5\u4f5c\u6d41\u7684\u5177\u4f53\u7684\u884c\u4e3a\uff0c\u6bd4\u5982\u521b\u5efa\u4e00\u4e2a pull request\uff0c\u65b0\u5efa\u4e00\u4e2a issue\u3001\u6216\u8005\u63a8\u9001\u4e00\u4e2a commit\u3002\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u65f6\u95f4\u8868\u89e6\u53d1\u4e00\u4e2a\u5de5\u4f5c\u6d41\uff0c\u6216\u8005\u901a\u8fc7\u8bf7\u6c42\u4e00\u4e2a  REST API\uff0c\u518d\u6216\u8005\u624b\u52a8\u89e6\u53d1\u3002<\/p>\n<p dir=\"auto\">\u4e8b\u4ef6\u5b8c\u6574\u7684\u5217\u8868\uff0c\u53ef\u4ee5\u67e5\u770b\u300c<a href=\"https:\/\/docs.github.com\/en\/actions\/reference\/events-that-trigger-workflows\">\u89e6\u53d1\u5de5\u4f5c\u6d41\u7684\u4e8b\u4ef6<\/a>\u300d\u3002<\/p>\n<h3 dir=\"auto\">\u4efb\u52a1\uff08Jobs\uff09<\/h3>\n<p dir=\"auto\">\u4efb\u52a1\u662f\u5728\u540c\u4e00\u4e2a\u8fd0\u884c\u5668\u4e0a\u6267\u884c\u7684\u4e00\u7ec4\u6b65\u9aa4\uff08steps\uff09\u3002\u4e00\u4e2a\u6b65\u9aa4\uff08steps\uff09\u8981\u4e48\u662f\u4e00\u4e2ashell \u811a\u672c\uff08script\uff09\u8981\u4e48\u662f\u4e00\u4e2a\u52a8\u4f5c\uff08action\uff09\u3002\u6b65\u9aa4\u4f1a\u987a\u5e8f\u6267\u884c\uff0c\u5e76\u5f7c\u6b64\u72ec\u7acb\u3002\u56e0\u4e3a\u6bcf\u4e00\u4e2a\u6b65\u9aa4\u90fd\u5728\u540c\u4e00\u4e2a\u8fd0\u884c\u5668\u4e0a\u88ab\u6267\u884c\uff0c\u6240\u4ee5\u4f60\u53ef\u4ee5\u4ece\u4e00\u4e2a\u6b65\u9aa4\uff08step\uff09\u4f20\u9012\u6570\u636e\u5230\u53e6\u4e00\u4e2a\u6b65\u9aa4\uff08step\uff09 \u3002<\/p>\n<p dir=\"auto\">\u4f60\u53ef\u4ee5\u914d\u7f6e\u4e00\u4e2a\u4efb\u52a1\u4f9d\u8d56\u5176\u4ed6\u4efb\u52a1\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u4efb\u52a1\u6ca1\u6709\u4f9d\u8d56\uff0c\u5e76\u884c\u6267\u884c\u3002\u5f53\u4e00\u4e2a\u4efb\u52a1\u9700\u8981\u53e6\u5916\u4e00\u4e2a\u4efb\u52a1\u7684\u65f6\u5019\uff0c\u5b83\u4f1a\u7b49\u5230\u4f9d\u8d56\u7684\u4efb\u52a1\u5b8c\u6210\u518d\u6267\u884c\u3002<\/p>\n<h3 dir=\"auto\">\u52a8\u4f5c\uff08Actions\uff09<\/h3>\n<p dir=\"auto\">\u52a8\u4f5c\u662f GitHub Actions \u5e73\u53f0\u7684\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7684\u5e94\u7528\uff0c\u5b83\u4f1a\u6267\u884c\u4e00\u4e2a\u590d\u6742\u4f46\u662f\u9700\u8981\u9891\u7e41\u91cd\u590d\u7684\u4f5c\u4e1a\u3002\u4f7f\u7528\u52a8\u4f5c\u53ef\u4ee5\u51cf\u5c11\u91cd\u590d\u4ee3\u7801\u3002\u6bd4\u5982\u4e00\u4e2a action \u53ef\u4ee5\u5b9e\u73b0\u4ece GitHub \u62c9\u53d6\u4f60\u7684 git \u4ed3\u5e93\uff0c\u4e3a\u4f60\u7684\u6784\u5efa\u73af\u5883\u521b\u5efa\u5408\u9002\u7684\u5de5\u5177\u94fe\u7b49\u3002<\/p>\n<p dir=\"auto\">\u4f60\u53ef\u4ee5\u5199\u81ea\u5df1\u7684\u52a8\u4f5c \uff0c\u6216\u8005\u5728 GitHub \u5e02\u573a\u627e\u5df2\u7ecf\u5b9e\u73b0\u597d\u7684\u52a8\u4f5c\u3002<\/p>\n<h3 dir=\"auto\">\u8fd0\u884c\u5668\uff08Runners\uff09<\/h3>\n<p dir=\"auto\">\u4e00\u4e2a\u8fd0\u884c\u5668\u662f\u4e00\u4e2a\u53ef\u4ee5\u8fd0\u884c\u5de5\u4f5c\u6d41\u7684\u670d\u52a1\u3002\u6bcf\u4e00\u4e2a\u8fd0\u884c\u5668\u4e00\u6b21\u53ea\u8fd0\u884c\u4e00\u4e2a\u5355\u72ec\u7684\u4efb\u52a1\u3002GitHub \u63d0\u4f9b Ubuntu Linux\uff0cMicrosoft Windows \u548c macOS \u8fd0\u884c\u5668\uff0c\u6bcf\u4e00\u4e2a\u5de5\u4f5c\u6d41\u90fd\u8fd0\u884c\u5728\u4e00\u4e2a\u72ec\u7acb\u65b0\u5efa\u7684\u865a\u62df\u673a\u4e2d\u3002\u5982\u679c\u4f60\u9700\u8981\u4e00\u4e2a\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4f60\u53ef\u4ee5\u81ea\u5b9a\u4e49\u8fd0\u884c\u5668\u3002\u8bf7\u67e5\u770b\u300c<a href=\"https:\/\/docs.github.com\/en\/actions\/hosting-your-own-runners\">\u81ea\u5b9a\u4e49\u8fd0\u884c\u5668<\/a>\u300d\u3002<\/p>\n<h2 dir=\"auto\">\u521b\u5efa\u4e00\u4e2a\u5de5\u4f5c\u6d41<\/h2>\n<p dir=\"auto\">GitHub Actions \u4f7f\u7528 YAML \u8bed\u6cd5\u5b9a\u4e49\u5de5\u4f5c\u6d41\u3002\u6bcf\u4e00\u4e2a\u5de5\u4f5c\u6d41\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u72ec\u7acb\u7684  YAML  \u6587\u4ef6\uff0c\u76ee\u5f55\u662f <code class=\"notranslate\">.github\/workflows<\/code> \u3002<\/p>\n<p dir=\"auto\">\u73b0\u5728\u6211\u4eec\u5728\u4ee3\u7801\u4ed3\u5e93\u521b\u5efa\u4e00\u4e2a\u793a\u4f8b\u5de5\u4f5c\u6d41\uff0c\u5f53\u4ee3\u7801\u88ab\u63a8\u9001\u7684\u65f6\u5019\uff0c\u4f1a\u81ea\u52a8\u6267\u884c\u4e00\u7cfb\u5217\u7684\u547d\u4ee4\u3002\u5728\u8fd9\u4e2a\u793a\u4f8b\u5de5\u4f5c\u6d41\u4e2d\uff0cGitHub Actions \u4f1a\u68c0\u51fa\u63d0\u4ea4\u7684\u4ee3\u7801\uff0c\u5b89\u88c5\u4f9d\u8d56\uff0c\u8fd0\u884c <code class=\"notranslate\">bats -v<\/code>\uff1a<\/p>\n<ol dir=\"auto\">\n<li>\u5728\u4f60\u7684\u4ed3\u5e93\uff0c\u521b\u5efa\u4e00\u4e2a <code class=\"notranslate\">.github\/workflows\/<\/code> \u76ee\u5f55<\/li>\n<li>\u5728 <code class=\"notranslate\">.github\/workflows\/<\/code> \u76ee\u5f55\uff0c\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\uff0c\u540d\u4e3a <code class=\"notranslate\">learn-github-actions.yml<\/code> \uff0c\u6dfb\u52a0\u4e0b\u9762\u7684\u4ee3\u7801\uff1a<\/li>\n<\/ol>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"name: learn-github-actions\non: [push]\njobs:\n  check-bats-version:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\/checkout@v2\n      - uses: actions\/setup-node@v2\n        with:\n          node-version: '14'\n      - run: npm install -g bats\n      - run: bats -v\"><\/p>\n<pre class=\"notranslate\"><span class=\"pl-ent\">name<\/span>: <span class=\"pl-s\">learn-github-actions<\/span>\n<span class=\"pl-ent\">on<\/span>: <span class=\"pl-s\">[push]<\/span>\n<span class=\"pl-ent\">jobs<\/span>:\n  <span class=\"pl-ent\">check-bats-version<\/span>:\n    <span class=\"pl-ent\">runs-on<\/span>: <span class=\"pl-s\">ubuntu-latest<\/span>\n    <span class=\"pl-ent\">steps<\/span>:\n      - <span class=\"pl-ent\">uses<\/span>: <span class=\"pl-s\">actions\/checkout@v2<\/span>\n      - <span class=\"pl-ent\">uses<\/span>: <span class=\"pl-s\">actions\/setup-node@v2<\/span>\n        <span class=\"pl-ent\">with<\/span>:\n          <span class=\"pl-ent\">node-version<\/span>: <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>14<span class=\"pl-pds\">'<\/span><\/span>\n      - <span class=\"pl-ent\">run<\/span>: <span class=\"pl-s\">npm install -g bats<\/span>\n      - <span class=\"pl-ent\">run<\/span>: <span class=\"pl-s\">bats -v<\/span><\/pre>\n<\/div>\n<ol start=\"3\" dir=\"auto\">\n<li>\u63d0\u4ea4\u8fd9\u4e9b\u6539\u52a8\uff0c\u63a8\u9001\u5230\u4f60\u7684 GitHub \u4ed3\u5e93\u3002<\/li>\n<\/ol>\n<p dir=\"auto\">\u4f60\u7684\u65b0 GitHub Actions \u5de5\u4f5c\u6d41\u6587\u4ef6\u5c31\u4f1a\u88ab\u5b89\u88c5\u5728\u4f60\u7684\u4ed3\u5e93\uff0c\u5f53\u6709\u4eba\u63d0\u4ea4\u4ee3\u7801\u7684\u65f6\u5019\uff0c\u5de5\u4f5c\u6d41\u5c31\u4f1a\u81ea\u52a8\u6267\u884c\u3002\u5173\u4e8e\u4e00\u4e2a\u4efb\u52a1\u7684\u6267\u884c\u5386\u53f2\uff0c\u67e5\u770b\u300c<a href=\"https:\/\/docs.github.com\/cn\/actions\/learn-github-actions\/introduction-to-github-actions#viewing-the-jobs-activity\">\u67e5\u770b\u5de5\u4f5c\u6d41\u6d3b\u52a8<\/a>\u300d\u7ae0\u8282\u3002<\/p>\n<h2 dir=\"auto\">\u7406\u89e3\u5de5\u4f5c\u6d41\u6587\u4ef6<\/h2>\n<p dir=\"auto\">\u4e3a\u4e86\u5e2e\u52a9\u4f60\u7406\u89e3 YAML \u8bed\u6cd5\uff0c\u8fd9\u8282\u4f1a\u89e3\u91ca\u4f8b\u5b50\u4e2d\u7684\u6bcf\u884c\u4ee3\u7801\uff1a<\/p>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"name: learn-github-actions\">\n<pre class=\"notranslate\"><span class=\"pl-ent\">name<\/span>: <span class=\"pl-s\">learn-github-actions<\/span><\/pre>\n<\/div>\n<p dir=\"auto\">\u53ef\u9009\uff0c\u5de5\u4f5c\u6d41\u7684\u540d\u5b57\uff0c\u4f1a\u51fa\u73b0\u5728 GitHub \u4ed3\u5e93\u7684 Actions \u9009\u9879\u680f\u91cc\u3002<\/p>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"on: [push]\">\n<pre class=\"notranslate\"><span class=\"pl-ent\">on<\/span>: <span class=\"pl-s\">[push]<\/span><\/pre>\n<\/div>\n<p dir=\"auto\">\u6307\u5b9a\u5de5\u4f5c\u6d41\u7684\u89e6\u53d1\u4e8b\u4ef6\u3002\u8fd9\u4e2a\u4f8b\u5b50\u91cc\uff0c\u4f7f\u7528\u662f <code class=\"notranslate\">push<\/code>  \u4e8b\u4ef6\uff0c\u5f53\u6709\u4eba\u63d0\u4ea4\u4e86\u4e00\u4e2a\u4ee3\u7801\u4fee\u6539\u6216\u8005\u5408\u5e76\u4e86\u4e00\u4e2a pull request \uff0c\u5de5\u4f5c\u6d41\u5c31\u4f1a\u89e6\u53d1\u3002\u63d0\u4ea4\u5230\u6bcf\u4e2a\u5206\u652f\u90fd\u4f1a\u88ab\u89e6\u53d1\uff0c\u5982\u679c\u4f60\u60f3\u5728\u6307\u5b9a\u5206\u652f\u3001\u8def\u5f84\u3001\u6807\u7b7e\uff0c\u67e5\u770b \u300c<a href=\"https:\/\/docs.github.com\/actions\/reference\/workflow-syntax-for-github-actions#onpushpull_requestpaths\">GitHub Actions \u5de5\u4f5c\u6d41\u8bed\u6cd5<\/a>\u300d<\/p>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"jobs:\">\n<pre class=\"notranslate\"><span class=\"pl-ent\">jobs<\/span>:<\/pre>\n<\/div>\n<p dir=\"auto\">\u5c06\u8fd0\u884c\u5728 <code class=\"notranslate\">learn-github-actions<\/code> \u5de5\u4f5c\u6d41\u7684\u6240\u6709\u4efb\u52a1\u5206\u7ec4\u5728\u4e00\u8d77\u3002<\/p>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"check-bats-version:\">\n<pre class=\"notranslate\"><span class=\"pl-ent\">check-bats-version<\/span>:<\/pre>\n<\/div>\n<p dir=\"auto\">\u5b9a\u4e49\u4e86\u4e00\u4e2a\u540d\u4e3a<code class=\"notranslate\">check-bats-version<\/code> \u7684\u4efb\u52a1\uff0c\u5b50\u952e\uff08child key\uff09\u4f1a\u5b9a\u4e49\u8be5\u4efb\u52a1\u7684\u5c5e\u6027\u3002<\/p>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"  runs-on: ubuntu-latest\">\n<pre class=\"notranslate\">  <span class=\"pl-ent\">runs-on<\/span>: <span class=\"pl-s\">ubuntu-latest<\/span><\/pre>\n<\/div>\n<p dir=\"auto\">\u914d\u7f6e\u4efb\u52a1\u8fd0\u884c\u5728\u6700\u65b0\u7684 Ubuntu Linux \u8fd0\u884c\u5668\u3002<\/p>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\" steps:\">\n<pre class=\"notranslate\"> <span class=\"pl-ent\">steps<\/span>:<\/pre>\n<\/div>\n<p dir=\"auto\">\u5c06 <code class=\"notranslate\">check-bats-version<\/code> \u4efb\u52a1\u4e0b\u7684\u6240\u6709\u6b65\u9aa4\u5206\u4e3a\u4e00\u7ec4\uff0c\u5d4c\u5957\u7684\u6bcf\u4e00\u4e2a\u6761\u76ee\u90fd\u662f\u4e00\u4e2a\u72ec\u7acb\u7684 action \u6216\u8005 shell \u811a\u672c\u3002<\/p>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"- uses: actions\/checkout@v2\">\n<pre class=\"notranslate\">- <span class=\"pl-ent\">uses<\/span>: <span class=\"pl-s\">actions\/checkout@v2<\/span><\/pre>\n<\/div>\n<p dir=\"auto\"><code class=\"notranslate\">uses<\/code> \u5173\u952e\u5b57\u6307\u5b9a\u4e86\u8fd9\u4e2a\u6b65\u9aa4\u8fd0\u884c <code class=\"notranslate\">actions\/checkout<\/code> \u52a8\u4f5c\u7684 <code class=\"notranslate\">v2<\/code> \u5927\u7248\u672c \u3002\u8fd9\u662f\u4e00\u4e2a\u53ef\u4ee5\u68c0\u51fa\u4ed3\u5e93\u4ee3\u7801\u5230\u8fd0\u884c\u5668\u7684\u52a8\u4f5c\uff0c\u5b83\u5141\u8bb8\u4f60\u8fd0\u884c\u811a\u672c\u6216\u8005\u5176\u4ed6\u52a8\u4f5c\u4fb5\u5165\u4f60\u7684\u4ee3\u7801\uff08\u6bd4\u5982\u6784\u5efa\u6216\u8005\u6d4b\u8bd5\u5de5\u5177\uff09\u3002<\/p>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"- uses: actions\/setup-node@v2\n  with:\n    node-version: '14'\"><\/p>\n<pre class=\"notranslate\">- <span class=\"pl-ent\">uses<\/span>: <span class=\"pl-s\">actions\/setup-node@v2<\/span>\n  <span class=\"pl-ent\">with<\/span>:\n    <span class=\"pl-ent\">node-version<\/span>: <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>14<span class=\"pl-pds\">'<\/span><\/span><\/pre>\n<\/div>\n<p dir=\"auto\">\u8fd9\u4e2a\u6b65\u9aa4\u4f1a\u4f7f\u7528 <code class=\"notranslate\">actions\/setup-node@v2<\/code> \u52a8\u4f5c\u5b89\u88c5\u6307\u5b9a\u7248\u672c\u7684 Nodejs \uff0c\u8fd9\u4f1a\u5728\u4f60\u7684 <code class=\"notranslate\">PATH<\/code> \u52a0\u4e0a <code class=\"notranslate\">node<\/code> \u548c <code class=\"notranslate\">npm<\/code> \u547d\u4ee4\u3002<\/p>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"- run: npm install -g bats\">\n<pre class=\"notranslate\">- <span class=\"pl-ent\">run<\/span>: <span class=\"pl-s\">npm install -g bats<\/span><\/pre>\n<\/div>\n<p dir=\"auto\"><code class=\"notranslate\">run<\/code> \u5173\u952e\u5b57\u4f1a\u544a\u8bc9\u4efb\u52a1\u5728\u8fd0\u884c\u5668\u4e0a\u6267\u884c\u4e00\u4e2a\u547d\u4ee4\u3002\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u4f60\u6b63\u5728\u4f7f\u7528 <code class=\"notranslate\">npm<\/code> \u5b89\u88c5 <code class=\"notranslate\">bats<\/code> \u8f6f\u4ef6\u6d4b\u8bd5\u5305\u3002<\/p>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"- run: bats -v\">\n<pre class=\"notranslate\">- <span class=\"pl-ent\">run<\/span>: <span class=\"pl-s\">bats -v<\/span><\/pre>\n<\/div>\n<p dir=\"auto\">\u6700\u7ec8\uff0c\u4f60\u8fd0\u884c <code class=\"notranslate\">bats<\/code> \u547d\u4ee4\uff0c\u4f20\u5165\u4e00\u4e2a\u53ef\u4ee5\u6253\u5370\u8f6f\u4ef6\u7248\u672c\u7684\u53c2\u6570\u3002<\/p>\n<h2 dir=\"auto\">\u53ef\u89c6\u5316\u5de5\u4f5c\u6d41\u6587\u4ef6<\/h2>\n<p dir=\"auto\">\u5728\u8fd9\u4e2a\u56fe\u8868\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u4f60\u521a\u521b\u5efa\u7684\u5de5\u4f5c\u6d41\u6587\u4ef6\uff0c\u4ee5\u53ca\u8fd9\u4e9b GitHub Actions \u7ec4\u4ef6\u662f\u5982\u4f55\u7ec4\u7ec7\u7684\u3002\u6bcf\u4e00\u4e2a\u6b65\u9aa4\u90fd\u4f1a\u6267\u884c\u4e00\u4e2a\u72ec\u7acb\u7684\u52a8\u4f5c\u6216\u8005\u811a\u672c\u6587\u4ef6\u3002\u4efb\u52a11 \u548c 2 \u662f\u8fd0\u884c\u547d\u4ee4\uff0c\u4efb\u52a13 \u548c \u4efb\u52a1 4 \u662f\u8fd0\u884c\u811a\u672c\u6587\u4ef6\u3002\u627e\u5230\u66f4\u591a\u9884\u6784\u5efa\u7684\u52a8\u4f5c\uff0c\u67e5\u770b \u300c<a href=\"https:\/\/docs.github.com\/cn\/actions\/learn-github-actions\/finding-and-customizing-actions\">\u67e5\u627e\u548c\u81ea\u5b9a\u4e49\u52a8\u4f5c<\/a>\u300d\u3002<\/p>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"\/\/www.lccc.top\/wp-content\/uploads\/pic\/mqyqingfen\/e028725a937df5058405f0707d625740d6ec573c.jpg\"><img decoding=\"async\" src=\"\/\/www.lccc.top\/wp-content\/uploads\/pic\/mqyqingfen\/e028725a937df5058405f0707d625740d6ec573c.jpg\" alt=\"\" data-canonical-src=\"https:\/\/cdn.jsdelivr.net\/gh\/mqyqingfeng\/picture\/1639662148147-86650f20-32ea-43ac-a7fe-6725c481c4f1.png\" style=\"max-width: 100%;\"><\/a><\/p>\n<h2 dir=\"auto\">\u67e5\u770b\u5de5\u4f5c\u6d41\u6d3b\u52a8<\/h2>\n<p dir=\"auto\">\u4e00\u65e6\u4f60\u7684\u5de5\u4f5c\u6d41\u5f00\u59cb\u8fd0\u884c\uff0c\u4f60\u53ef\u4ee5\u5728 GitHub \u770b\u5230\u4e00\u4e2a\u53ef\u89c6\u5316\u7684\u8fd0\u884c\u8fdb\u5ea6\u56fe\u8868 \uff0c\u67e5\u770b\u6bcf\u4e00\u4e2a\u6b65\u9aa4\u7684\u6267\u884c\u60c5\u51b5\u3002<\/p>\n<ol dir=\"auto\">\n<li>\u5728 GitHub.com \uff0c\u5bfc\u822a\u81f3\u4ed3\u5e93\u4e3b\u4e3b\u9875<\/li>\n<li>\u5728\u4f60\u7684\u4ed3\u5e93\u540d\u4e0b\uff0c\u70b9\u51fb <code class=\"notranslate\">Actions<\/code>\u3002<\/li>\n<\/ol>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"\/\/www.lccc.top\/wp-content\/uploads\/pic\/mqyqingfen\/733ffe1ad04718909b68ab7cde79d8d1e3eec848.jpg\"><img decoding=\"async\" src=\"\/\/www.lccc.top\/wp-content\/uploads\/pic\/mqyqingfen\/733ffe1ad04718909b68ab7cde79d8d1e3eec848.jpg\" alt=\"\" data-canonical-src=\"https:\/\/cdn.jsdelivr.net\/gh\/mqyqingfeng\/picture\/1639662282961-ec63ab60-991d-4787-a176-aec27063d5dc.png\" style=\"max-width: 100%;\"><\/a><\/p>\n<ol start=\"3\" dir=\"auto\">\n<li>\u5728\u5de6\u4fa7 sidebar\uff0c\u70b9\u51fb\u4f60\u60f3\u67e5\u770b\u7684\u5de5\u4f5c\u6d41<\/li>\n<\/ol>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"\/\/www.lccc.top\/wp-content\/uploads\/pic\/mqyqingfen\/6c37fbc850b6eee615bcc926e4df36197042ef1f.jpg\"><img decoding=\"async\" src=\"\/\/www.lccc.top\/wp-content\/uploads\/pic\/mqyqingfen\/6c37fbc850b6eee615bcc926e4df36197042ef1f.jpg\" alt=\"\" data-canonical-src=\"https:\/\/cdn.jsdelivr.net\/gh\/mqyqingfeng\/picture\/1639662312636-fb6c425e-d1d3-40cd-bb59-39cde6f45842.png\" style=\"max-width: 100%;\"><\/a><\/p>\n<ol start=\"4\" dir=\"auto\">\n<li>\u5728 <code class=\"notranslate\">Workflow runs<\/code> \uff0c\u70b9\u51fb\u4f60\u60f3\u67e5\u770b\u7684\u8fd0\u884c\u8bb0\u5f55\u7684\u540d\u79f0\uff1a<\/li>\n<\/ol>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"\/\/www.lccc.top\/wp-content\/uploads\/pic\/mqyqingfen\/a98cee3c55c640c990fb68dd455d0099f2aff382.jpg\"><img decoding=\"async\" src=\"\/\/www.lccc.top\/wp-content\/uploads\/pic\/mqyqingfen\/a98cee3c55c640c990fb68dd455d0099f2aff382.jpg\" alt=\"\" data-canonical-src=\"https:\/\/cdn.jsdelivr.net\/gh\/mqyqingfeng\/picture\/1639662357643-d0fe9897-bdd6-4f81-ae2b-105925f934c8.png\" style=\"max-width: 100%;\"><\/a><\/p>\n<ol start=\"5\" dir=\"auto\">\n<li>\u5728 Jobs \u6216\u8005\u5728\u53ef\u89c6\u5316\u56fe\u8868\u4e2d\uff0c\u70b9\u51fb\u4f60\u60f3\u770b\u5230\u7684\u4efb\u52a1\uff1a<\/li>\n<\/ol>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"\/\/www.lccc.top\/wp-content\/uploads\/pic\/mqyqingfen\/ed219d1b4209c5eb61878024f87345b0da211d87.jpg\"><img decoding=\"async\" src=\"\/\/www.lccc.top\/wp-content\/uploads\/pic\/mqyqingfen\/ed219d1b4209c5eb61878024f87345b0da211d87.jpg\" alt=\"\" data-canonical-src=\"https:\/\/cdn.jsdelivr.net\/gh\/mqyqingfeng\/picture\/1639662426071-0685eb80-c9a2-43a3-948f-ca640ecadf03.png\" style=\"max-width: 100%;\"><\/a><\/p>\n<ol start=\"6\" dir=\"auto\">\n<li>\u67e5\u770b\u6bcf\u4e00\u4e2a\u6b65\u9aa4\u7684\u7ed3\u679c\uff1a<\/li>\n<\/ol>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"\/\/www.lccc.top\/wp-content\/uploads\/pic\/mqyqingfen\/4a3bd8e63c62c9feb8eb7161a90d3bee1d2a8751.jpg\"><img decoding=\"async\" src=\"\/\/www.lccc.top\/wp-content\/uploads\/pic\/mqyqingfen\/4a3bd8e63c62c9feb8eb7161a90d3bee1d2a8751.jpg\" alt=\"\" data-canonical-src=\"https:\/\/cdn.jsdelivr.net\/gh\/mqyqingfeng\/picture\/1639664446896-69fabd3a-9416-472a-ac66-8b15f36f9d45.png\" style=\"max-width: 100%;\"><\/a><\/p>\n<h2 dir=\"auto\">\u4e0a\u7bc7\u6587\u7ae0\u4ee3\u7801\u89e3\u6790<\/h2>\n<p dir=\"auto\">\u73b0\u5728\u6211\u4eec\u518d\u6765\u770b GitHub \u540c\u6b65 Gitee \u7684\u4ee3\u7801\uff0c\u662f\u4e0d\u662f\u5c31\u6e05\u695a\u5f88\u591a\u4e86\uff1a<\/p>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"name: syncToGitee\non:\n  push:\n    branches:\n      - gh-pages\njobs:\n  repo-sync:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Mirror the Github organization repos to Gitee.\n        uses: Yikun\/hub-mirror-action@master\n        with:\n          src: 'github\/mqyqingfeng'\n          dst: 'gitee\/mqyqingfeng'\n          dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}\n          dst_token:  ${{ secrets.GITEE_TOKEN }}\n          static_list: &quot;learn-typescript&quot;\n          force_update: true\n          debug: true\"><\/p>\n<pre class=\"notranslate\"><span class=\"pl-ent\">name<\/span>: <span class=\"pl-s\">syncToGitee<\/span>\n<span class=\"pl-ent\">on<\/span>:\n  <span class=\"pl-ent\">push<\/span>:\n    <span class=\"pl-ent\">branches<\/span>:\n      - <span class=\"pl-s\">gh-pages<\/span>\n<span class=\"pl-ent\">jobs<\/span>:\n  <span class=\"pl-ent\">repo-sync<\/span>:\n    <span class=\"pl-ent\">runs-on<\/span>: <span class=\"pl-s\">ubuntu-latest<\/span>\n    <span class=\"pl-ent\">steps<\/span>:\n      - <span class=\"pl-ent\">name<\/span>: <span class=\"pl-s\">Mirror the Github organization repos to Gitee.<\/span>\n        <span class=\"pl-ent\">uses<\/span>: <span class=\"pl-s\">Yikun\/hub-mirror-action@master<\/span>\n        <span class=\"pl-ent\">with<\/span>:\n          <span class=\"pl-ent\">src<\/span>: <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>github\/mqyqingfeng<span class=\"pl-pds\">'<\/span><\/span>\n          <span class=\"pl-ent\">dst<\/span>: <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>gitee\/mqyqingfeng<span class=\"pl-pds\">'<\/span><\/span>\n          <span class=\"pl-ent\">dst_key<\/span>: <span class=\"pl-s\">${{ secrets.GITEE_PRIVATE_KEY }}<\/span>\n          <span class=\"pl-ent\">dst_token<\/span>:  <span class=\"pl-s\">${{ secrets.GITEE_TOKEN }}<\/span>\n          <span class=\"pl-ent\">static_list<\/span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>learn-typescript<span class=\"pl-pds\">\"<\/span><\/span>\n          <span class=\"pl-ent\">force_update<\/span>: <span class=\"pl-c1\">true<\/span>\n          <span class=\"pl-ent\">debug<\/span>: <span class=\"pl-c1\">true<\/span><\/pre>\n<\/div>\n<p dir=\"auto\">\u5728\u8fd9\u4e2a\u4f8b\u5b50\u91cc\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u540d\u4e3a <code class=\"notranslate\">syncToGitee<\/code> \u7684\u5de5\u4f5c\u6d41\uff0c\u6307\u5b9a\u4ee3\u7801\u63d0\u4ea4\u5230\u5206\u652f <code class=\"notranslate\">gh-pages<\/code> \u624d\u89e6\u53d1\u5de5\u4f5c\u6d41\u3002<\/p>\n<p dir=\"auto\">\u4efb\u52a1\u4e0b\u53ea\u6709\u4e00\u4e2a\u540d\u4e3a <code class=\"notranslate\">repo-sync<\/code> \u7684\u4efb\u52a1\uff0c\u8fd0\u884c\u5728 <code class=\"notranslate\">ubuntu-latest<\/code>\uff0c\u5177\u4f53\u7684\u6b65\u9aa4\u4e0b\uff0c\u4e5f\u53ea\u6709\u4e00\u4e2a\u540d\u4e3a <code class=\"notranslate\">Mirror the GitHub organization repos to Gitee.<\/code> \u7684\u6b65\u9aa4\uff0c\u4f7f\u7528\u4e86 <code class=\"notranslate\">Yikun\/hub-mirror-action@master<\/code> \u52a8\u4f5c\uff0c\u800c <code class=\"notranslate\">with<\/code> \u91cc\u7684\u5185\u5bb9\u5219\u662f\u8be5\u52a8\u4f5c\u9700\u8981\u7684\u4e00\u4e9b\u53c2\u6570\u3002<\/p>\n<h2 dir=\"auto\">\u7cfb\u5217\u6587\u7ae0<\/h2>\n<p dir=\"auto\">\u7cfb\u5217\u6587\u7ae0\u76ee\u5f55\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/mqyqingfeng\/Blog\">https:\/\/github.com\/mqyqingfeng\/Blog<\/a><\/p>\n<p dir=\"auto\">\u5fae\u4fe1\uff1a\u300cmqyqingfeng\u300d\uff0c\u52a0\u6211\u8fdb\u51b4\u7fbd\u552f\u4e00\u7684\u8bfb\u8005\u7fa4\u3002<\/p>\n<p dir=\"auto\">\u5982\u679c\u6709\u9519\u8bef\u6216\u8005\u4e0d\u4e25\u8c28\u7684\u5730\u65b9\uff0c\u8bf7\u52a1\u5fc5\u7ed9\u4e88\u6307\u6b63\uff0c\u5341\u5206\u611f\u8c22\u3002\u5982\u679c\u559c\u6b22\u6216\u8005 \u6709\u6240\u542f\u53d1\uff0c\u6b22\u8fce star\uff0c\u5bf9\u4f5c\u8005\u4e5f\u662f\u4e00\u79cd\u9f13\u52b1\u3002<\/p>\n<\/td>\n<p>\u6587\u7ae0\u8f6c\u8f7d\u81ea<a href='https:\/\/github.com\/mqyqingfeng\/Blog\/issues\/237'>https:\/\/github.com\/mqyqingfeng\/Blog\/issues\/237<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u5728\u4e0a\u7bc7\u300a\u4e00\u7bc7\u6559\u4f60\u4ee3\u7801\u540c\u6b65 GitHub \u548c Gitee\u300b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528 GitHub Actions \u89e3\u51b3\u4e86 GitHub \u4ee3\u7801\u81ea\u52a8\u540c\u6b65 Gitee \u7684\u95ee\u9898&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.lccc.top\/?p=1409\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1409","post","type-post","status-publish","format-standard","hentry","category-learn"],"_links":{"self":[{"href":"https:\/\/www.lccc.top\/index.php?rest_route=\/wp\/v2\/posts\/1409"}],"collection":[{"href":"https:\/\/www.lccc.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lccc.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lccc.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lccc.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1409"}],"version-history":[{"count":1,"href":"https:\/\/www.lccc.top\/index.php?rest_route=\/wp\/v2\/posts\/1409\/revisions"}],"predecessor-version":[{"id":2405,"href":"https:\/\/www.lccc.top\/index.php?rest_route=\/wp\/v2\/posts\/1409\/revisions\/2405"}],"wp:attachment":[{"href":"https:\/\/www.lccc.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lccc.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lccc.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}