-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove version update job from release workflow
- Loading branch information
1 parent
3fedba9
commit 414ecc0
Showing
1 changed file
with
1 addition
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|