Repository navigation
ci(fleet): keep temporary source edits separate from workflow changes #5
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: Fleet native seam prefactor | |
| on: | |
| push: | |
| branches: [feat/gitea-acpx-fleet] | |
| paths: [.github/scripts/fleet-native-patch.py, .github/workflows/fleet-native-prefactor.yml] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: fleet-native-prefactor | |
| cancel-in-progress: false | |
| jobs: | |
| apply: | |
| if: github.repository == 'Futuri-Risk/firstmate' && github.ref == 'refs/heads/feat/gitea-acpx-fleet' | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: feat/gitea-acpx-fleet | |
| - name: Apply checked source changes on the feature branch only | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| python3 .github/scripts/fleet-native-patch.py | |
| while IFS= read -r file; do | |
| case "$file" in *.sh) bash -n "$file" ;; *.py) python3 -m py_compile "$file" ;; esac | |
| done < <(git diff --name-only -- bin tests) | |
| git add -u bin tests | |
| if ! git diff --cached --quiet; then | |
| git -c user.name='github-actions[bot]' -c user.email='41898282+github-actions[bot]@users.noreply.github.com' commit -m 'fix(fleet): apply checked native integration changes' | |
| git push origin HEAD:feat/gitea-acpx-fleet | |
| fi | |
| git rev-parse HEAD |