간편한 GiitHub Actions 워크플로우 패치를 바로 가기 키로 적용

단축키 응용 프로그램에서 재밌는 일이 없으면 역사의 공식 응용 프로그램

있죠.

Workflow ID


Workflow ID가 필요하므로 참조Actions - GitHub Docs로 얻습니다.
curl \
  -H "Accept: application/vnd.github.v3+json" \
  https://api.github.com/repos/KoheiKanagu/KoheiKanagu/actions/workflows

{
  "total_count": 2,
  "workflows": [
    {
      "id": 10719756,
      "node_id": "MDg6V29ya2Zsb3cxMDcxOTc1Ng==",
      "name": "GitHub-Profile-3D-Contrib",
      "path": ".github/workflows/profile-3d.yml",
      "state": "active",
      "created_at": "2021-06-24T07:47:01.000Z",
      "updated_at": "2021-06-24T07:47:01.000Z",
      "url": "https://api.github.com/repos/KoheiKanagu/KoheiKanagu/actions/workflows/10719756",
      "html_url": "https://github.com/KoheiKanagu/KoheiKanagu/blob/master/.github/workflows/profile-3d.yml",
      "badge_url": "https://github.com/KoheiKanagu/KoheiKanagu/workflows/GitHub-Profile-3D-Contrib/badge.svg"
    },
    {
      "id": 2478894,
      "node_id": "MDg6V29ya2Zsb3cyNDc4ODk0",
      "name": "GitHub-Profile-Summary-Cards",
      "path": ".github/workflows/profile-summray-cards.yml",
      "state": "active",
      "created_at": "2020-09-08T02:46:13.000Z",
      "updated_at": "2020-09-08T02:46:13.000Z",
      "url": "https://api.github.com/repos/KoheiKanagu/KoheiKanagu/actions/workflows/2478894",
      "html_url": "https://github.com/KoheiKanagu/KoheiKanagu/blob/master/.github/workflows/profile-summray-cards.yml",
      "badge_url": "https://github.com/KoheiKanagu/KoheiKanagu/workflows/GitHub-Profile-Summary-Cards/badge.svg"
    }
  ]
}
또는 GiitHub CLI 를 사용할 수도 있습니다.
개인 창고라면curl은 인증 영패 같은 게 필요하기 때문에 간단합니다.
❯ gh workflow list
GitHub-Profile-3D-Contrib     active  10719756
GitHub-Profile-Summary-Cards  active  2478894

일단 실행하다



처음 집행할 때는 허가가 필요하다.

뛰어다니다

총결산


마지막으로 REST API만 치면 되지만 단축키부터 실행할 수 있기 때문에 아이폰, 아이패드가 있으면 어디서든 편지를 받을 수 있다.
그나저나 "헤이 시리, 앱을 만들자"는 꿈도 커진다.

좋은 웹페이지 즐겨찾기