-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: sign commits in generate-screenshots using swinton/[email protected]
- Loading branch information
1 parent
fbfb692
commit a11ded9
Showing
1 changed file
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 || | ||
|