Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,24 @@ jobs:
run: dart fix --apply

- name: Commit and Push changes
id: commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: auto-fix linting and formatting issues"
branch: ${{ github.ref_name }}
continue-on-error: true

- name: Create Pull Request if push failed
if: steps.commit.outcome == 'failure' && steps.commit.outputs.changes_detected == 'true'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: ${{ github.ref_name }}
commit-message: "style: auto-fix linting and formatting issues"
title: "Auto-fix linting and formatting issues"
branch: ${{ github.ref_name }}-auto-fix-lint-${{ github.run_number }}
branch: auto-fix-lint-${{ github.run_number }}
delete-branch: true

- name: Strip signing config to build debug APK safely without keystores
run: |
Expand Down Expand Up @@ -100,4 +114,4 @@ jobs:
with:
name: Updatium-Commit-${{ steps.vars.outputs.sha_short }}
path: build/outputs/artifacts/
retention-days: 14 # Keep artifacts for 14 days to save space
retention-days: 14 # Keep artifacts for 14 days to save space
13 changes: 13 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,23 @@ jobs:
run: dart fix --apply

- name: Commit and Push changes
id: commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: auto-fix linting and formatting issues"
branch: ${{ github.ref_name }}
continue-on-error: true

- name: Create Pull Request if push failed
if: steps.commit.outcome == 'failure'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "style: auto-fix linting and formatting issues"
title: "Auto-fix linting and formatting issues"
body: "Automated lint fixes applied by nightly workflow"
branch: auto-fix-lint-nightly-${{ github.run_number }}
delete-branch: true

# Running sync script to ensure no broken dependencies before building
- name: Run Environment Sync
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,23 @@ jobs:
run: dart fix --apply

- name: Commit and Push changes
id: commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: auto-fix linting and formatting issues"
branch: ${{ github.ref_name }}
continue-on-error: true

- name: Create Pull Request if push failed
if: steps.commit.outcome == 'failure'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "style: auto-fix linting and formatting issues"
title: "Auto-fix linting and formatting issues"
body: "Automated lint fixes applied by release workflow"
branch: auto-fix-lint-release-${{ github.run_number }}
delete-branch: true

- name: Extract Version
id: extract_version
Expand Down
Loading