Skip to content

Commit

Permalink
try committing from top level workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
angusbayley committed Jan 3, 2025
1 parent 19b1645 commit ed68277
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/generate-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ permissions:

jobs:
generate-screenshots-linux:
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
env:
NODE_OPTIONS: "--max-old-space-size=7168"
FORCE_COLOR: 3
Expand Down Expand Up @@ -58,6 +62,27 @@ jobs:
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

# - uses: actions/checkout@v4
# # Include the pull request ref in the checkout action to prevent merge commit
# # https://github.com/actions/checkout?tab=readme-ov-file#checkout-pull-request-head-commit-instead-of-merge-commit
# with:
# ref: ${{ github.event.pull_request.head.sha }}

# Run steps that make changes to the local repo here.
- name: Make changes and commit
run: |
echo "Test commit in generate-screenshots" > file0.txt
git add .
# Commit all changed files back to the repository
- uses: planetscale/[email protected]
with:
commit_message: "Automated commit, generate-screenshots"
repo: ${{ github.repository }}
branch: ${{ github.head_ref || github.ref_name }}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Setup git user
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-git-user@develop
- name: Setup the toolchain
Expand Down

0 comments on commit ed68277

Please sign in to comment.