Skip to content

Commit

Permalink
trying - new name for gh token
Browse files Browse the repository at this point in the history
  • Loading branch information
angusbayley committed Dec 16, 2024
1 parent 4a4f0a2 commit e792d4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generate-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ jobs:
skip_ruby: true
install_playwright: true
turborepo-server-port: ${{ steps.caches.outputs.port }}
- uses: LedgerHQ/ledger-live/tools/actions/composites/update-snapshots-desktop@develop
- uses: LedgerHQ/ledger-live/tools/actions/composites/update-snapshots-desktop@support/signed-screenshot-gh-commits-swinton
id: update-snapshots
with:
os: ubuntu-22.04
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
token: ${{ steps.generate-token.outputs.token }}

report-start:
name: Report start
Expand Down
19 changes: 2 additions & 17 deletions tools/actions/composites/update-snapshots-desktop/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
os:
description: "name of the os (same as runs-on)"
required: true
GITHUB_TOKEN:
token:
description: "GitHub token"
required: true

Expand Down Expand Up @@ -45,31 +45,16 @@ runs:
echo "changes=$(git status -s)"
shell: bash

# - 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: ${{ inputs.GITHUB_TOKEN }}
GH_TOKEN: ${{ inputs.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 restore . &&
# git pull --rebase &&
# git push ||
# echo ""
# shell: bash

- name: Upload playwright results [On Failure]
uses: actions/upload-artifact@v4
if: failure() && !cancelled()
Expand Down

0 comments on commit e792d4b

Please sign in to comment.