Skip to content

Commit

Permalink
Add automatic github action to add broken links to json
Browse files Browse the repository at this point in the history
  • Loading branch information
thebiggest0 committed Jun 11, 2024
1 parent 0f407a5 commit 6878139
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ name: Node.js CI
on:
pull_request:

permissions:
contents: write

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -16,3 +19,19 @@ jobs:
node-version: '14.x'
- run: npm ci
- run: npm test

- name: Set up Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Commit changes
run: |
git add .
git commit -m "Automated commit from GitHub Actions for weekly deadlink check" || echo "No changes to commit"
- name: Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push origin main || echo "No changes to push"

0 comments on commit 6878139

Please sign in to comment.