From a11ded9430d1b2942ad4105469603407d2244cf0 Mon Sep 17 00:00:00 2001 From: Angus Bayley Date: Fri, 13 Dec 2024 10:44:36 +0000 Subject: [PATCH] ci: sign commits in generate-screenshots using swinton/commit@v2.x --- .../update-snapshots-desktop/action.yml | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/tools/actions/composites/update-snapshots-desktop/action.yml b/tools/actions/composites/update-snapshots-desktop/action.yml index 36cee6473d2e..f1e4019cdc91 100644 --- a/tools/actions/composites/update-snapshots-desktop/action.yml +++ b/tools/actions/composites/update-snapshots-desktop/action.yml @@ -42,11 +42,25 @@ runs: echo "changes=$(git status -s)" shell: bash - - name: Commit snapshots + - name: Add snapshots + if: ${{ steps.status.outputs.status != 0 || steps.status-windows.outputs.status != 0 }} + run: | + git add ./apps/ledger-live-desktop/tests/specs + shell: bash + + - name: Commit file + if: ${{ steps.status.outputs.status != 0 || steps.status-windows.outputs.status != 0 }} + uses: swinton/commit@v2.x + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + files: | + ./apps/ledger-live-desktop/tests/specs* + commit-message: "test(lld): update screenshots (${{ inputs.os }}) ${{ steps.changes.outputs.changes }} lld, test, screenshot" + + - name: Rebase and push if: ${{ steps.status.outputs.status != 0 || steps.status-windows.outputs.status != 0 }} run: | - git add ./apps/ledger-live-desktop/tests/specs && - git commit -m "test(lld): update screenshots (${{ inputs.os }}) ${{ steps.changes.outputs.changes }} lld, test, screenshot" && git restore . && git pull --rebase && git push ||