mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 20:42:26 +00:00
34 lines
1.3 KiB
YAML
Vendored
34 lines
1.3 KiB
YAML
Vendored
on:
|
|
schedule:
|
|
- cron: '0 0 * * *' # at midnight (utc) every day
|
|
jobs:
|
|
build:
|
|
name: Run AskGit
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout AskGit repo
|
|
uses: actions/checkout@v2
|
|
with:
|
|
repository: askgitdev/askgit
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Install libgit2
|
|
run: sudo ./scripts/install_libgit2.sh
|
|
|
|
- name: Build AskGit
|
|
run: |
|
|
make
|
|
cp .build/askgit /usr/local/bin/askgit
|
|
|
|
- name: Sync tables
|
|
run: |
|
|
export PGSYNC=1
|
|
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
|
|
export GITHUB_PER_PAGE=50
|
|
export POSTGRES_CONNECTION=${{ secrets.POSTGRES_CONNECTION }}
|
|
askgit pgsync pull_requests "SELECT * FROM github_repo_prs('GamestonkTerminal/GamestonkTerminal')"
|
|
askgit pgsync issues "SELECT * FROM github_repo_issues('GamestonkTerminal/GamestonkTerminal')"
|
|
askgit pgsync repos "SELECT * FROM github_org_repos('GamestonkTerminal')"
|
|
askgit pgsync commit_stats "SELECT * FROM commits('https://github.com/GamestonkTerminal/GamestonkTerminal'), stats('https://github.com/GamestonkTerminal/GamestonkTerminal', commits.hash)"
|
|
askgit pgsync stargazers "SELECT * FROM github_stargazers('GamestonkTerminal/GamestonkTerminal')"
|