Skip to content

Commit

Permalink
added prefix and suffix to front version
Browse files Browse the repository at this point in the history
  • Loading branch information
zurdi15 committed Dec 22, 2023
1 parent 2c2e67f commit f08179a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

# - name: Set environment variables
# run: echo "GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: Set version
run: sed -i 's/<version>/'"${{ inputs.version }}"'/' backend/__version__.py
run: |
prefix=${{ github.ref != format('refs/heads/{0}', 'release') && 'dev-' || '' }}
suffix=${{ github.ref == format('refs/heads/{0}', 'master') && env.RC_SUFFIX || '' }}
version=${prefix}${{ inputs.version }}${suffix}
sed -i 's/<version>/'"${version}"'/' backend/__version__.py
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down

0 comments on commit f08179a

Please sign in to comment.