2024-10-13 07:01:56 +00:00
|
|
|
name: Update All Top Ranking Issues
|
|
|
|
|
2024-01-24 17:26:15 +00:00
|
|
|
on:
|
2024-02-16 03:04:57 +00:00
|
|
|
schedule:
|
|
|
|
- cron: "0 */12 * * *"
|
|
|
|
workflow_dispatch:
|
2024-01-24 17:26:15 +00:00
|
|
|
|
|
|
|
jobs:
|
2024-02-16 03:04:57 +00:00
|
|
|
update_top_ranking_issues:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository_owner == 'zed-industries'
|
|
|
|
steps:
|
2024-10-09 22:24:10 +00:00
|
|
|
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
2024-10-10 02:53:01 +00:00
|
|
|
- name: Set up uv
|
2024-10-16 21:20:39 +00:00
|
|
|
uses: astral-sh/setup-uv@f3bcaebff5eace81a1c062af9f9011aae482ca9d # v3
|
2024-02-16 03:04:57 +00:00
|
|
|
with:
|
2024-10-10 02:53:01 +00:00
|
|
|
version: "latest"
|
|
|
|
enable-cache: true
|
|
|
|
cache-dependency-glob: "script/update_top_ranking_issues/pyproject.toml"
|
2024-10-15 15:08:02 +00:00
|
|
|
- name: Install Python 3.13
|
|
|
|
run: uv python install 3.13
|
2024-10-10 02:53:01 +00:00
|
|
|
- name: Install dependencies
|
2024-10-15 15:08:02 +00:00
|
|
|
run: uv sync --project script/update_top_ranking_issues -p 3.13
|
2024-10-10 02:53:01 +00:00
|
|
|
- name: Run script
|
|
|
|
run: uv run --project script/update_top_ranking_issues script/update_top_ranking_issues/main.py --github-token ${{ secrets.GITHUB_TOKEN }} --issue-reference-number 5393
|