Skip to content

Commit

Permalink
Add action to format external links
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaehn committed Feb 11, 2025
1 parent 894229c commit 3016077
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/format_external_links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Format Markdown Links

on:
push:
branches-ignore:
# We don't want code modified after merge in master
- main
paths:
# Run action if any Markdown file is pushed
- '**.md'

jobs:
format-links:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Run Link Formatter Script
run: python ./scripts/format_external_links.py --path ./docs

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'GitHub Action: Apply external link format'
branch: ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3016077

Please sign in to comment.