Skip to content

Commit

Permalink
chore: remove version update job from release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
srijanpatel committed Feb 19, 2025
1 parent 3fedba9 commit 414ecc0
Showing 1 changed file with 1 addition and 36 deletions.
37 changes: 1 addition & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,7 @@ env:
BACKEND_IMAGE_NAME: ${{ github.repository }}-backend

jobs:
update-version:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
version: ${{ steps.get-version.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0

- name: Get version from tag
id: get-version
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT

- name: Update pyproject.toml version
run: |
VERSION=${{ steps.get-version.outputs.version }}
sed -i "s/version = \".*\"/version = \"$VERSION\"/" backend/pyproject.toml
- name: Commit and push version update
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add backend/pyproject.toml
git commit -m "chore: update version to ${{ steps.get-version.outputs.version }}"
git push origin main
- name: Update release tag
run: |
git tag -f ${{ github.event.release.tag_name }}
git push --force origin ${{ github.event.release.tag_name }}
build-and-push-docker:
needs: update-version
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -85,7 +50,7 @@ jobs:
labels: ${{ steps.meta-backend.outputs.labels }}

publish-to-pypi:
needs: [update-version, build-and-push-docker]
needs: [build-and-push-docker]
runs-on: ubuntu-latest
permissions:
id-token: write
Expand Down

0 comments on commit 414ecc0

Please sign in to comment.