Add install-ai-satellite.sh; add start_app_service to lib.sh #24
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: Update .rsync.exlude | |
| on: | |
| push: | |
| paths: | |
| - "**/.rsync.exclude" | |
| - ".rsync.exclude.initial" | |
| - ".github/actions/concatenate_rsync_exclude.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-rsync-exclude: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Concatenate .rsync.exclude files with directory paths | |
| run: | | |
| # Start with the .rsync.exclude.initial file | |
| cp .rsync.exclude.initial .rsync.exclude | |
| # Find all .rsync.exclude files one level down, process each with its path prefix | |
| find . -mindepth 2 -maxdepth 2 -name ".rsync.exclude" | while read -r rsync_excludes; do | |
| dir_path=$(dirname "$rsync_excludes" | sed 's|^\./||') | |
| echo -e "\n# Patterns from $dir_path/.rsync.exclude" >> .rsync.exclude | |
| cat "$rsync_excludes" >> .rsync.exclude | |
| done | |
| - name: Check for changes | |
| id: changes | |
| run: | | |
| if [[ -n "$(git status --porcelain .rsync.exclude)" ]]; then | |
| echo "changes=true" >> $GITHUB_ENV | |
| else | |
| echo "changes=false" >> $GITHUB_ENV | |
| fi | |
| - name: Commit and push if changes exist | |
| if: env.changes == 'true' | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git add .rsync.exclude | |
| git commit -m "Update top-level .rsync.exclude with directory paths" | |
| git push |