Skip to content

Commit

Permalink
ci: sign commits in generate-screenshots using swinton/[email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
angusbayley committed Dec 13, 2024
1 parent fbfb692 commit a11ded9
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions tools/actions/composites/update-snapshots-desktop/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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 ||
Expand Down

0 comments on commit a11ded9

Please sign in to comment.