Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] add workflow to auto update #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 'automatic update'

on:
workflow_dispatch:
inputs:
date:
type: string
description: Date(default today)
schedule:
- cron: '13/47 * * * *'

jobs:
update:
name: Automatic Update
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- run: pip install -r requirements.txt

- name: Update
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUT_DATE: ${{ github.event.inputs.date }}
run: |
python get_data.py \
python md_to_html.py \
python yaml_2_js.py \
python plot-stars.py \

- name: Commit
uses: EndBug/add-and-commit@v8
with:
message: 'automatic update'
add: './'
122 changes: 122 additions & 0 deletions apigh/2023-04-19/Aloud
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"id": 237287917,
"node_id": "MDEwOlJlcG9zaXRvcnkyMzcyODc5MTc=",
"name": "aloud",
"full_name": "patarapolw/aloud",
"private": false,
"owner": {
"login": "patarapolw",
"id": 21255931,
"node_id": "MDQ6VXNlcjIxMjU1OTMx",
"avatar_url": "https://avatars.githubusercontent.com/u/21255931?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/patarapolw",
"html_url": "https://github.com/patarapolw",
"followers_url": "https://api.github.com/users/patarapolw/followers",
"following_url": "https://api.github.com/users/patarapolw/following{/other_user}",
"gists_url": "https://api.github.com/users/patarapolw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/patarapolw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/patarapolw/subscriptions",
"organizations_url": "https://api.github.com/users/patarapolw/orgs",
"repos_url": "https://api.github.com/users/patarapolw/repos",
"events_url": "https://api.github.com/users/patarapolw/events{/privacy}",
"received_events_url": "https://api.github.com/users/patarapolw/received_events",
"type": "User",
"site_admin": false
},
"html_url": "https://github.com/patarapolw/aloud",
"description": "A commenting engine. Aloud your comments.",
"fork": false,
"url": "https://api.github.com/repos/patarapolw/aloud",
"forks_url": "https://api.github.com/repos/patarapolw/aloud/forks",
"keys_url": "https://api.github.com/repos/patarapolw/aloud/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/patarapolw/aloud/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/patarapolw/aloud/teams",
"hooks_url": "https://api.github.com/repos/patarapolw/aloud/hooks",
"issue_events_url": "https://api.github.com/repos/patarapolw/aloud/issues/events{/number}",
"events_url": "https://api.github.com/repos/patarapolw/aloud/events",
"assignees_url": "https://api.github.com/repos/patarapolw/aloud/assignees{/user}",
"branches_url": "https://api.github.com/repos/patarapolw/aloud/branches{/branch}",
"tags_url": "https://api.github.com/repos/patarapolw/aloud/tags",
"blobs_url": "https://api.github.com/repos/patarapolw/aloud/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/patarapolw/aloud/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/patarapolw/aloud/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/patarapolw/aloud/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/patarapolw/aloud/statuses/{sha}",
"languages_url": "https://api.github.com/repos/patarapolw/aloud/languages",
"stargazers_url": "https://api.github.com/repos/patarapolw/aloud/stargazers",
"contributors_url": "https://api.github.com/repos/patarapolw/aloud/contributors",
"subscribers_url": "https://api.github.com/repos/patarapolw/aloud/subscribers",
"subscription_url": "https://api.github.com/repos/patarapolw/aloud/subscription",
"commits_url": "https://api.github.com/repos/patarapolw/aloud/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/patarapolw/aloud/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/patarapolw/aloud/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/patarapolw/aloud/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/patarapolw/aloud/contents/{+path}",
"compare_url": "https://api.github.com/repos/patarapolw/aloud/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/patarapolw/aloud/merges",
"archive_url": "https://api.github.com/repos/patarapolw/aloud/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/patarapolw/aloud/downloads",
"issues_url": "https://api.github.com/repos/patarapolw/aloud/issues{/number}",
"pulls_url": "https://api.github.com/repos/patarapolw/aloud/pulls{/number}",
"milestones_url": "https://api.github.com/repos/patarapolw/aloud/milestones{/number}",
"notifications_url": "https://api.github.com/repos/patarapolw/aloud/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/patarapolw/aloud/labels{/name}",
"releases_url": "https://api.github.com/repos/patarapolw/aloud/releases{/id}",
"deployments_url": "https://api.github.com/repos/patarapolw/aloud/deployments",
"created_at": "2020-01-30T19:22:39Z",
"updated_at": "2020-11-25T20:16:09Z",
"pushed_at": "2022-12-22T20:20:30Z",
"git_url": "git://github.com/patarapolw/aloud.git",
"ssh_url": "[email protected]:patarapolw/aloud.git",
"clone_url": "https://github.com/patarapolw/aloud.git",
"svn_url": "https://github.com/patarapolw/aloud",
"homepage": "https://aloud.polv.cc",
"size": 2525,
"stargazers_count": 6,
"watchers_count": 6,
"language": "Vue",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"has_discussions": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 53,
"license": {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit",
"node_id": "MDc6TGljZW5zZTEz"
},
"allow_forking": true,
"is_template": false,
"web_commit_signoff_required": false,
"topics": [
"comment-system",
"firebase-auth",
"firebase-storage",
"markdown-it",
"mongodb"
],
"visibility": "public",
"forks": 0,
"open_issues": 53,
"watchers": 6,
"default_branch": "master",
"permissions": {
"admin": false,
"maintain": false,
"push": false,
"triage": false,
"pull": false
},
"temp_clone_token": "",
"network_count": 0,
"subscribers_count": 1
}
98 changes: 98 additions & 0 deletions apigh/2023-04-19/Aloud.commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"sha": "af8740e4dbd575e89ececf45e50ed18016337430",
"node_id": "MDY6Q29tbWl0MjM3Mjg3OTE3OmFmODc0MGU0ZGJkNTc1ZTg5ZWNlY2Y0NWU1MGVkMTgwMTYzMzc0MzA=",
"commit": {
"author": {
"name": "Pacharapol Withayasakpunt",
"email": "[email protected]",
"date": "2020-06-24T11:27:04Z"
},
"committer": {
"name": "Pacharapol Withayasakpunt",
"email": "[email protected]",
"date": "2020-06-24T11:27:04Z"
},
"message": "🐛 Fix: save change for now. postMessage isn't working.",
"tree": {
"sha": "505e3976de84e8537e1e17b3b2d46ec34330870e",
"url": "https://api.github.com/repos/patarapolw/aloud/git/trees/505e3976de84e8537e1e17b3b2d46ec34330870e"
},
"url": "https://api.github.com/repos/patarapolw/aloud/git/commits/af8740e4dbd575e89ececf45e50ed18016337430",
"comment_count": 0,
"verification": {
"verified": false,
"reason": "unsigned",
"signature": null,
"payload": null
}
},
"url": "https://api.github.com/repos/patarapolw/aloud/commits/af8740e4dbd575e89ececf45e50ed18016337430",
"html_url": "https://github.com/patarapolw/aloud/commit/af8740e4dbd575e89ececf45e50ed18016337430",
"comments_url": "https://api.github.com/repos/patarapolw/aloud/commits/af8740e4dbd575e89ececf45e50ed18016337430/comments",
"author": {
"login": "patarapolw",
"id": 21255931,
"node_id": "MDQ6VXNlcjIxMjU1OTMx",
"avatar_url": "https://avatars.githubusercontent.com/u/21255931?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/patarapolw",
"html_url": "https://github.com/patarapolw",
"followers_url": "https://api.github.com/users/patarapolw/followers",
"following_url": "https://api.github.com/users/patarapolw/following{/other_user}",
"gists_url": "https://api.github.com/users/patarapolw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/patarapolw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/patarapolw/subscriptions",
"organizations_url": "https://api.github.com/users/patarapolw/orgs",
"repos_url": "https://api.github.com/users/patarapolw/repos",
"events_url": "https://api.github.com/users/patarapolw/events{/privacy}",
"received_events_url": "https://api.github.com/users/patarapolw/received_events",
"type": "User",
"site_admin": false
},
"committer": {
"login": "patarapolw",
"id": 21255931,
"node_id": "MDQ6VXNlcjIxMjU1OTMx",
"avatar_url": "https://avatars.githubusercontent.com/u/21255931?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/patarapolw",
"html_url": "https://github.com/patarapolw",
"followers_url": "https://api.github.com/users/patarapolw/followers",
"following_url": "https://api.github.com/users/patarapolw/following{/other_user}",
"gists_url": "https://api.github.com/users/patarapolw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/patarapolw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/patarapolw/subscriptions",
"organizations_url": "https://api.github.com/users/patarapolw/orgs",
"repos_url": "https://api.github.com/users/patarapolw/repos",
"events_url": "https://api.github.com/users/patarapolw/events{/privacy}",
"received_events_url": "https://api.github.com/users/patarapolw/received_events",
"type": "User",
"site_admin": false
},
"parents": [
{
"sha": "888b32573534d685fc0f48a08670bbe0e0d17ec1",
"url": "https://api.github.com/repos/patarapolw/aloud/commits/888b32573534d685fc0f48a08670bbe0e0d17ec1",
"html_url": "https://github.com/patarapolw/aloud/commit/888b32573534d685fc0f48a08670bbe0e0d17ec1"
}
],
"stats": {
"total": 2,
"additions": 1,
"deletions": 1
},
"files": [
{
"sha": "290185a8c1bb471df63ed5f6c658babc1e908e3c",
"filename": "packages/web/src/views/Comment.vue",
"status": "modified",
"additions": 1,
"deletions": 1,
"changes": 2,
"blob_url": "https://github.com/patarapolw/aloud/blob/af8740e4dbd575e89ececf45e50ed18016337430/packages%2Fweb%2Fsrc%2Fviews%2FComment.vue",
"raw_url": "https://github.com/patarapolw/aloud/raw/af8740e4dbd575e89ececf45e50ed18016337430/packages%2Fweb%2Fsrc%2Fviews%2FComment.vue",
"contents_url": "https://api.github.com/repos/patarapolw/aloud/contents/packages%2Fweb%2Fsrc%2Fviews%2FComment.vue?ref=af8740e4dbd575e89ececf45e50ed18016337430",
"patch": "@@ -77,7 +77,7 @@ export default class Comment extends Vue {\n if (this.parent) {\n this.parent.postMessage({\n scrollHeight: this.$el.scrollHeight + 100\n- }, location.origin)\n+ }, this.parent.origin)\n }\n })\n }"
}
]
}
Loading