Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
chore: move "apt_pkgs.txt" to .github
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinNitroG committed Jan 16, 2025
1 parent 3e62ad3 commit 030a4df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
File renamed without changes.
8 changes: 5 additions & 3 deletions .github/workflows/schedule-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
# - cron: 0 0 * * 0
workflow_dispatch:

env:
APT_PKGS_PATH: '.github/apt_pkgs.txt'

jobs:
run:
name: Run
Expand All @@ -31,20 +34,19 @@ jobs:
- name: Get required apt packages
id: get-pkgs
shell: bash
run: echo "pkgs=$( tr '\n' ' ' <'./apt_pkgs.txt' )" > "$GITHUB_OUTPUT"
run: echo "pkgs=$( tr '\n' ' ' <'{{ env.APT_PKGS_PATH }}' )" > "$GITHUB_OUTPUT"

- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: ${{ steps.get-pkgs.outputs.pkgs }}
version: ${{ hashFiles('apt_pkgs.txt') }}
version: ${{ hashFiles(env.APT_PKGS_PATH) }}
execute_install_scripts: true

- name: Install production deps
run: uv sync --no-dev

- name: Restore config
if: ${{ env.config != '' }}
shell: bash
run: curl -o config.json ${{ env.config }}

- name: Run check phat nguoi
Expand Down

0 comments on commit 030a4df

Please sign in to comment.