Revision control

Copy as Markdown

name: Update README with current tech stack
on:
workflow_dispatch:
schedule:
- cron: '0 12 * * SUN'
jobs:
update_readme_with_current_stack:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3
- name: Update README
run: |
sh update_readme_project_stack.sh
- name: Check changes
run: |
if [[ $(git status --porcelain) ]]; then
echo "changes_detected=true" >> $GITHUB_ENV
fi
- name: Commit if needed
if: ${{ env.changes_detected }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "Update README with latest tech stack"
- name: Create Pull Request
if: ${{ env.changes_detected }}
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
with:
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
committer: GitHub <noreply@github.com>
title: Bump FXIOS [Documentation] Update README with recent tech stack
branch: update-readme-with-tech-stack
token: ${{ secrets.GITHUB_TOKEN }}