{"id":13529574,"url":"https://github.com/YouEclipse/steam-box","last_synced_at":"2025-04-01T16:31:39.091Z","repository":{"id":40543065,"uuid":"270163145","full_name":"YouEclipse/steam-box","owner":"YouEclipse","description":"🎮 Update profile README / pinned gist to contain your Steam playtime leaderboard. 在你的 profile README / pinned gist 上显示你的 steam 游玩时间排行榜。","archived":false,"fork":false,"pushed_at":"2024-07-10T07:09:17.000Z","size":36,"stargazers_count":165,"open_issues_count":3,"forks_count":139,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-02T16:35:00.439Z","etag":null,"topics":["pinned-gist","profile","profile-readme","steam","steam-playtime-leaderboard"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YouEclipse.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-07T02:04:56.000Z","updated_at":"2024-10-21T03:52:20.000Z","dependencies_parsed_at":"2024-11-02T16:30:39.481Z","dependency_job_id":null,"html_url":"https://github.com/YouEclipse/steam-box","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YouEclipse%2Fsteam-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YouEclipse%2Fsteam-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YouEclipse%2Fsteam-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YouEclipse%2Fsteam-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YouEclipse","download_url":"https://codeload.github.com/YouEclipse/steam-box/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246670548,"owners_count":20815003,"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","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":["pinned-gist","profile","profile-readme","steam","steam-playtime-leaderboard"],"created_at":"2024-08-01T07:00:37.551Z","updated_at":"2025-04-01T16:31:38.824Z","avatar_url":"https://github.com/YouEclipse.png","language":"Go","funding_links":[],"categories":["Go","External Services"],"sub_categories":[],"readme":"# \n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"400\" src=\"https://user-images.githubusercontent.com/8252317/83985151-9e8eaf00-a96a-11ea-9b3c-b654dc9bee2f.png\"\u003e\n  \u003ch3 align=\"center\"\u003esteam-box\u003c/h3\u003e\n  \u003cp align=\"center\"\u003e\u003cimg width=\"20\" height=\"20\" src=\"https://store.steampowered.com/favicon.ico\"\u003e\u003c/img\u003e  Update  pinned gist / profile README to contain your Steam playtime leaderboard. \u003c/p\u003e\n  \n   \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/YouEclipse/steam-box/workflows/Update%20gist%20with%20Steam%20Playtime/badge.svg\"\u003e\u003cimg src=\"https://github.com/YouEclipse/steam-box/workflows/Update%20gist%20with%20Steam%20Playtime/badge.svg\" alt=\"Update gist with Steam Playtime\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\n---\nEnglish | [简体中文](./README_zh.md)\n\n\u003e 📌✨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists\n\n\n## 💻 Setup\n\n### 🎒 Prep work\n\u003e if only want's to update a markdown,like profile README,skip step 1 and step 2.\n1. Create a new public GitHub Gist (https://gist.github.com/)\n1. Create a token with the `gist` scope and copy it. (https://github.com/settings/tokens/new)\n1. Create a Steam  API key. (https://steamcommunity.com/dev/apikey)\n1. Find the steam ID (steamID64) of your account. (https://steamid.io)\n1. For updating a markdown file，add comments to the place where you want to update in the markdown file.\n   ```markdown\n    \u003c!-- steam-box start --\u003e\n    \u003c!-- steam-box end --\u003e\n    \n   ```\n\n\n### 🚀 Project setup\n1. Fork this repo\n1. Edit the [environment variable](https://github.com/YouEclipse/steam-box/actions/runs/126970182/workflow#L17-L19) in `.github/workflows/schedule.yml`:\n\n\u003e For updating github profile README,you can follow [steam-box.yml](https://github.com/YouEclipse/YouEclipse/blob/master/.github/workflows/steam-box.yml) in [YouEclipse](https://github.com/YouEclipse/YouEclipse) to create a Action in your README repo.Remember it's unsafe to use token with **`repo`** scope for updating the repo, steam-box update the profile repo using git command in Github Action instead of using github API.\n\n   - **GIST_ID:** The ID portion from your gist url: `https://gist.github.com/YouEclipse/`**`9bc7025496e478f439b9cd43eba989a4`**.\n\n1. Go to the repo **Settings \u003e Secrets**\n1. Add the following environment variables:\n   - **GH_TOKEN:** The GitHub token generated above.\n   - **STEAM_API_KEY:** The steam API key you created above. \n   - **STEAM_ID:** The steam ID of your account. \n1. If you want to show specific games,put the ids in environmet variable **APP_ID**:\n   - like `APP_ID=431960,730`\n   - you can get the id of a game from the store url: `https://store.steampowered.com/app/`**730**`/CounterStrike_Global_Offensive/`\n\n## 🕵️ How it works\n- Get your games playtime from [Steamwork Web API](https://partner.steamgames.com/doc/webapi) \n- Update Gist with Github API \n- Use Github Actions for updating Gist  \n\n## 📄 License\nThis project is licensed under [Apache-2.0](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYouEclipse%2Fsteam-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FYouEclipse%2Fsteam-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FYouEclipse%2Fsteam-box/lists"}