Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Package Finder

Package Finder #655

name: Package Finder
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *' # Runs every night at midnight UTC
jobs:
echo-input:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Find Packages and Update README.MD
uses: actions/github-script@v7
with:
github-token: ${{ secrets.READ_PACKAGES }}
script: |
const script = require('./package-finder.js')
await script({github})
# Commit changes with default GITHUB_TOKEN to not trigger another actions run
- name: Commit README.MD
run: |-
git config --global user.email "<>"
git config --global user.name "Github Actions Bot"
git add -A
git commit -m "Updated README.md packages table" || exit 0
git push