diff --git a/.github/workflows/generate_overview_apps.yaml b/.github/workflows/generate_overview_apps.yaml index 149aa247..36ecd34c 100644 --- a/.github/workflows/generate_overview_apps.yaml +++ b/.github/workflows/generate_overview_apps.yaml @@ -7,7 +7,6 @@ on: permissions: contents: write - pull-requests: write jobs: generate_overview_apps: @@ -32,16 +31,14 @@ jobs: STAMP=$(date -u '+%Y-%m-%d %H:%M UTC') sed -i "s|.*|$STAMP|" README.md - - name: Create Pull Request - uses: peter-evans/create-pull-request@v8 - with: - add-paths: | - src - README.md - commit-message: Regenerate overview apps - author: 'github-actions[bot] ' - committer: 'github-actions[bot] ' - branch: generate_overview_apps/regenerate - delete-branch: true - title: Regenerate overview apps - body: Automated overview apps regeneration. + - name: Commit and push changes + run: | + git config user.name 'github-actions[bot]' + git config user.email 'github-actions[bot]@users.noreply.github.com' + git add src README.md + if git diff --staged --quiet; then + echo "No changes to commit." + else + git commit -m "Regenerate overview apps" + git push origin HEAD:standard + fi