fixed email address #2
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: Build MDX Pages | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "devel/data.yaml" | |
jobs: | |
build-mdx-pages: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the code at the specified pull request head commit | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
# Install Python 3 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install pyyaml | |
run: python -m pip install --upgrade pip && pip install PyYAML | |
- name: Execute build.py | |
run: python devel/build.py | |
# Commit any changes made by the script | |
- name: Commit files | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
if ! git diff --exit-code; then | |
git commit -a -m "Updated MDX files" | |
fi | |
# Push the changes to the remote repository | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |