Consistent End-User Meta #12
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: Consistent End-User Meta | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- README.md | |
workflow_dispatch: | |
jobs: | |
meta-update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: "20" | |
- name: Install dependencies | |
run: | | |
npm install node-html-parser marked @octokit/rest -S | |
- 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: | | |
echo "Key here" | |
echo GITHUB_TOKEN | |
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 |