Skip to content

WebDev hack Day 2

WebDev hack Day 2 #21

Workflow file for this run

name: Update Index
on:
push:
paths:
- 'students/**'
jobs:
update-index:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update index.html
run: |
echo "Updating index.html"
# The content is dynamically loaded via JavaScript, so we don't need to modify the file
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add index.html
git commit -m "Update index.html" || echo "No changes to commit"
git push