Skip to content

Commit

Permalink
checkout correct version
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanrfrazier committed Oct 17, 2024
1 parent 859f273 commit 50e4a32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,14 @@ jobs:
with:
ref: ${{ inputs.nightly_tag_main || github.ref }}
persist-credentials: true
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
- name: Install the project
run: uv sync --dev

- name: Get Version from Input
if: ${{ inputs.version != '' }}
id: get-version-input
run: |
version=${{ inputs.version }}
# strip leading v if present
version=${version#v}
echo version=$version
echo version=$version >> $GITHUB_OUTPUT
- name: Get Version Base
Expand All @@ -135,6 +133,7 @@ jobs:
ghcr_tags: ${{ steps.set-vars.outputs.ghcr_tags }}
file: ${{ steps.set-vars.outputs.file }}
steps:
# TODO: why checkout?
- name: Check out the code at a specific ref
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -178,6 +177,7 @@ jobs:
runs-on: ubuntu-latest
needs: [get-version, setup]
steps:
# TODO: Should be inputs.version iff not base
- name: Check out the code at a specific ref
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 50e4a32

Please sign in to comment.