{"id":15040623,"url":"https://github.com/actionv/python-container-action","last_synced_at":"2026-02-06T08:01:07.072Z","repository":{"id":45409993,"uuid":"251289185","full_name":"actionv/python-container-action","owner":"actionv","description":"A template for building GitHub Actions in Python | 一个用于开发 GitHub Actions 的 Python 容器模板","archived":false,"fork":false,"pushed_at":"2021-12-15T13:04:09.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-03-15T10:22:29.453Z","etag":null,"topics":["actions","docker-container","github-actions","python"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/a-python-container-action-template","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/actionv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-30T11:49:26.000Z","updated_at":"2023-10-14T11:46:24.000Z","dependencies_parsed_at":"2023-01-05T04:50:59.058Z","dependency_job_id":null,"html_url":"https://github.com/actionv/python-container-action","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":0.05882352941176472,"last_synced_commit":"0ccda676a887a84fd01252a4be395cb338307f9c"},"previous_names":[],"tags_count":2,"template":true,"template_full_name":null,"purl":"pkg:github/actionv/python-container-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionv%2Fpython-container-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionv%2Fpython-container-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionv%2Fpython-container-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionv%2Fpython-container-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actionv","download_url":"https://codeload.github.com/actionv/python-container-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionv%2Fpython-container-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267150480,"owners_count":24043473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","docker-container","github-actions","python"],"created_at":"2024-09-24T20:44:50.164Z","updated_at":"2026-02-06T08:01:02.032Z","avatar_url":"https://github.com/actionv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/actionv/python-container-action\"\u003e\n    \u003cimg src=\"./images/logo.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e基于 Python 容器的 GitHub Actions 模板\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![actions status](https://github.com/actionv/python-container-action/workflows/Lint/badge.svg)](https://github.com/actionv/python-container-action/actions) [![release](https://img.shields.io/github/v/release/actionv/python-container-action.svg)](../../releases) [![license](https://badgen.net/github/license/actionv/python-container-action)](./LICENSE) [![PRs Welcome](https://badgen.net/badge/PRs/welcome/green)](../../pulls)\n\n\u003c/div\u003e\n\n这是一个用于快速创建 GitHub Actions 的模板，里面包含一段 Python 小程序，该应用程序内置到了 Container Action 中。\n\n在 [`main.py`](main.py) 文件中有一个小示例，展示了如何获取 Action 输入参数并返回 Action 输出。\n\n如果你想基于 Python 容器开发 GitHub Actions，可以在[当前仓库](https://github.com/actionv/python-container-action)上点击 \u003ckbd\u003e[Use this template](https://github.com/actionv/python-container-action/generate)\u003c/kbd\u003e，基于当前模板创建一个新的存储库。\n\n## 使用\n\n在此处描述如何使用你的 Action。\n\n### Workflow 示例\n\n```yml\nname: My Workflow\non: [push, pull_request]\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n        name: Run action\n\n        # 放置你的 Action 仓库\n      - uses: username/myaction@main\n\n        # Action 的输入参数\n        with:\n          username: yanglbme\n```\n\n### 入参\n\n| 参数     | 描述   | 是否必传 | 默认值 |\n| -------- | ------ | -------- | ------ |\n| username | 用户名 | 是       | -      |\n| age      | 年龄   | 否       | 18     |\n\n### 出参\n\n| 参数 | 描述         |\n| ---- | ------------ |\n| res  | 一个输出参数 |\n\n## 实例\n\n### 输入\n\n```yml\nwith:\n  username: yanglbme\n  age: 99\n```\n\n### 输出\n\n```yml\nsteps:\n- uses: actions/checkout@v2\n- name: Run action\n  id: myaction\n\n  # 放置你的 Action 仓库\n  uses: me/myaction@main\n\n  # Action 的输入参数\n  with:\n    username: yanglbme\n\n# 演示如何使用 Action 的输出\n- name: Check outputs\n    run: |\n    echo \"Outputs - ${{ steps.myaction.outputs.res }}\"\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factionv%2Fpython-container-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factionv%2Fpython-container-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factionv%2Fpython-container-action/lists"}