This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
Package Finder #656
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: 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 | |