diff --git a/.github/workflows/process-apps.yml b/.github/workflows/process-apps.yml index c85b8d862..a89ec64ad 100644 --- a/.github/workflows/process-apps.yml +++ b/.github/workflows/process-apps.yml @@ -32,16 +32,16 @@ jobs: ls -R dockge || echo "dockge not created" - name: Configure Git - if: steps.check_changes.outcome != 'success' run: | git config --global user.name "${{ github.actor }}" git config --global user.email "${{ github.actor }}@users.noreply.github.com" - name: Commit and push changes - if: steps.check_changes.outcome != 'success' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + git fetch origin appstore + git rebase origin/appstore git add appstore dockge || echo "No changes to add" - git commit -m "Processed apps directory via GitHub Actions" || echo "Nothing to commit" - git push origin main + git diff --cached --quiet && echo "No changes to commit" || git commit -m "Processed apps directory via GitHub Actions" + git push origin appstore