diff --git a/.github/workflows/release-create-hotfix.yml b/.github/workflows/release-create-hotfix.yml index b1f0f54e1de..cfc57e24fee 100644 --- a/.github/workflows/release-create-hotfix.yml +++ b/.github/workflows/release-create-hotfix.yml @@ -52,34 +52,29 @@ jobs: with: ref: ${{ env.ref }} token: ${{ steps.generate-token.outputs.token }} - - - name: Echo latest commit SHA - run: | - latest_commit_sha=$(git rev-parse HEAD) - echo "Latest commit SHA: $latest_commit_sha" - # - name: Setup git user - # uses: LedgerHQ/ledger-live/tools/actions/composites/setup-git-user@develop - # - name: create hotfix branch - # run: | - # git checkout -b hotfix - # - name: Setup the toolchain - # uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop - # - name: install dependencies - # run: pnpm i -F "ledger-live" - # - name: enter prerelease mode - # run: pnpm changeset pre enter hotfix - # - name: commit - # run: | - # git add . - # git commit -m "chore(hotfix) :rocket: entering hotfix mode" - # - name: Get date - # id: date - # run: | - # echo "date=$(date +%F)" >> $GITHUB_OUTPUT - # - name: push - # run: | - # git push origin hotfix - # gh pr create --title ":fire: Hotfix ${{ steps.date.outputs.date }}" -F ./.github/templates/hotfix.md --base main --head hotfix - # env: - # GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} + - name: Setup git user + uses: LedgerHQ/ledger-live/tools/actions/composites/setup-git-user@develop + - name: create hotfix branch + run: | + git checkout -b hotfix + - name: Setup the toolchain + uses: LedgerHQ/ledger-live/tools/actions/composites/setup-toolchain@develop + - name: install dependencies + run: pnpm i -F "ledger-live" + - name: enter prerelease mode + run: pnpm changeset pre enter hotfix + - name: commit + run: | + git add . + git commit -m "chore(hotfix) :rocket: entering hotfix mode" + - name: Get date + id: date + run: | + echo "date=$(date +%F)" >> $GITHUB_OUTPUT + - name: push + run: | + git push origin hotfix + gh pr create --title ":fire: Hotfix ${{ steps.date.outputs.date }}" -F ./.github/templates/hotfix.md --base main --head hotfix + env: + GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}