remove static branch name from version

This commit is contained in:
Kamil
2024-12-05 09:40:56 +00:00
parent 4be027bb35
commit d4c3a67249

View File

@@ -18,12 +18,6 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
ref: ${{ github.event.inputs.branch }} ref: ${{ github.event.inputs.branch }}
- name: Extract Version
id: extract_version
run: |
version=$(python3 -c "import version; print(f'dev-{version.__version__}')")
echo "VERSION=$version" >> $GITHUB_ENV
# Extract branch name and latest commit SHA # Extract branch name and latest commit SHA
- name: Extract branch name and commit SHA - name: Extract branch name and commit SHA
id: branch_info id: branch_info
@@ -35,6 +29,11 @@ jobs:
- name: Create DEV_BUILD file - name: Create DEV_BUILD file
run: | run: |
echo "${{ env.BRANCH_NAME }}-${{ env.COMMIT_SHA }}" > DEV_BUILD echo "${{ env.BRANCH_NAME }}-${{ env.COMMIT_SHA }}" > DEV_BUILD
- name: Extract Version
id: extract_version
run: |
version=$(python3 -c "import version; print(f'${{ env.BRANCH_NAME}}-{version.__version__}')")
echo "VERSION=$version" >> $GITHUB_ENV
# Set up Docker # Set up Docker
- name: Set up Docker Buildx - name: Set up Docker Buildx