Skip to content

Commit

Permalink
temp: add in checkout step to ensure it works
Browse files Browse the repository at this point in the history
  • Loading branch information
angusbayley committed Oct 31, 2024
1 parent d3e0b35 commit b7be5c7
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/release-create-hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b7be5c7

Please sign in to comment.