NoyeArk is testing out GitHub Actions 🚀 #2
Workflow file for this run
This file contains hidden or 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: GitHub Actions Demo | |
| run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 | |
| on: [push] | |
| jobs: | |
| Explore-GitHub-Actions: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check if Markdown files changed | |
| id: changed-files | |
| uses: tj-actions/changed-files@v44 | |
| - name: List all changed files | |
| run: | | |
| for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | |
| echo "$file was changed" | |
| done | |
| - name: Extract Markdown titles from changed files | |
| run: | | |
| if [ -n "${{ steps.changed-files.outputs.all_changed_files }}" ]; then | |
| for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | |
| if [[ "$file" == *.md ]]; then | |
| echo "Processing: $file" | |
| python3 scripts/extract_markdown_title.py "$file" | |
| fi | |
| done | |
| else | |
| echo "No changed files found" | |
| fi |