Skip to content

Commit

Permalink
End-User meta WF added
Browse files Browse the repository at this point in the history
  • Loading branch information
darsan-in committed Aug 11, 2024
1 parent b8d0339 commit 94e9e43
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/consistent-desc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Consistent End-User Meta

on:
push:
branches:
- main
paths:
- README.md
workflow_dispatch:

jobs:
meta-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7

- name: Set up Node.js
uses: actions/setup-node@v4.0.2
with:
node-version: "20"

- name: Install dependencies
run: |
npm install --production node-html-parser marked @octokit/rest
- name: Download Hero program
run: |
curl -o update-meta.js https://raw.githubusercontent.com/darsan-in/.github/main/utils/update-meta.js
- name: Update meta
env:
GITHUB_TOKEN: ${{ secrets.META_UPDATE_KEY }}
REPO_META: ${{ github.repository }}
run: |
node update-meta.js
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add package.json
git commit -m 'End-User Meta updated'
git push

0 comments on commit 94e9e43

Please sign in to comment.