Skip to content

Commit

Permalink
action+
Browse files Browse the repository at this point in the history
  • Loading branch information
darsan-in committed Jul 5, 2024
1 parent de2ca99 commit d401a40
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions .github/workflows/gh-meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,29 @@ jobs:
runs-on: ubuntu-latest

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

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

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

0 comments on commit d401a40

Please sign in to comment.