Auto Remove #231
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Remove | |
on: | |
workflow_dispatch: | |
schedule: [{ cron: 0 0 * * * }] | |
jobs: | |
publish: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.6 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11.0" | |
- name: Setup Node.JS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
version: 9 | |
run_install: false | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- uses: actions/cache@v4 | |
name: Setup pnpm cache | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" # See 'Supported distributions' for available options | |
java-version: "17" | |
- name: Install Dependencies | |
run: | | |
python3 -m pip install -r requirements.txt | |
git clone https://github.com/microsoft/winget-pkgs | |
pnpm install | |
- name: Run script | |
run: python3 src/scanner.py | |
env: | |
TOKEN: ${{ secrets.TOKEN }} | |
- name: Post Issue | |
run: pnpm run issue | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} |