Skip to content

NoyeArk is testing out GitHub Actions 🚀 #3

NoyeArk is testing out GitHub Actions 🚀

NoyeArk is testing out GitHub Actions 🚀 #3

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 out repository code
uses: actions/checkout@v5
- 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