Skip to content

Commit

Permalink
Periodical action to update meta
Browse files Browse the repository at this point in the history
  • Loading branch information
darsan-in committed Jul 5, 2024
1 parent eaa9d85 commit 7d54029
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/gh-meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Fetch GitHub MetaData

on:
schedule:
# Runs at 00:00 UTC every day
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
fetch-data:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: '21'

- name: Fetch GitHub Repos
env:
GITHUB_TOKEN: ${{ secrets.GHTOKEN }}
run: |
node ./action/fetch-data.js
- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add ghmeta.json
git commit -m 'Update ghmeta.json with latest GitHub data'
git push

0 comments on commit 7d54029

Please sign in to comment.