From b7be5c71acf7e6afd15ac15cf8e6b0ab3848bb8d Mon Sep 17 00:00:00 2001 From: Angus Bayley Date: Thu, 31 Oct 2024 12:57:53 +0000 Subject: [PATCH] temp: add in checkout step to ensure it works --- .github/workflows/release-create-hotfix.yml | 25 ++++++++++++--------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release-create-hotfix.yml b/.github/workflows/release-create-hotfix.yml index 76c5fa29a39..b1f0f54e1de 100644 --- a/.github/workflows/release-create-hotfix.yml +++ b/.github/workflows/release-create-hotfix.yml @@ -3,11 +3,11 @@ on: workflow_dispatch: inputs: tag_version: - description: the tag/release version to hotfix + description: version to hotfix (e.g. 2.91.0) default: latest required: false application: - description: the application to release (LLM | LLD) + description: application to release (LLM | LLD) required: true type: choice options: @@ -28,7 +28,7 @@ jobs: app_id: ${{ secrets.GH_BOT_APP_ID }} private_key: ${{ secrets.GH_BOT_PRIVATE_KEY }} - - name: Format application and tag version + - name: Generate ref/tag version to use during checkout id: format-app-tag run: | if [ ${{ github.event.inputs.tag_version }} = 'latest' ]; then @@ -46,15 +46,18 @@ jobs: fi echo "ref=$ref" >> $GITHUB_ENV - - - name: Output formatted application and tag version - run: | - echo "Formatted application and tag version: $ref" + echo "Formatted application and tag version: $ref" - # - uses: actions/checkout@v4 - # with: - # ref: ${{ inputs.tag_version == 'latest' && 'main' || inputs.tag_version }} #### FINISH - # token: ${{ steps.generate-token.outputs.token }} + - uses: actions/checkout@v4 + 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