Skip to content

Commit ed1e9ec

Browse files
committed
Use version from env variables instead of get-release-version action
1 parent 304bf0a commit ed1e9ec

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

.github/workflows/release-pipeline.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,24 @@ jobs:
3939
with:
4040
fetch-depth: 0
4141
ref: ${{ env.BRANCH_PREFIX }}${{ env.VERSION }}
42-
- name: get-release-version
43-
id: get-release-version
44-
uses: ./.github/actions/get-release-version
45-
with:
46-
branch_prefix: ${{ env.BRANCH_PREFIX }}
4742
- name: run-component-builds
4843
uses: ./.github/actions/build-environment
4944
with:
50-
build_args: --make --force --version=${{ steps.get-release-version.outputs.release_version }}
45+
build_args: --make --force --version=${{ env.VERSION }}
5146
- name: run-linting-and-style-checks
5247
uses: ./.github/actions/build-environment
5348
with:
54-
build_args: --check --force --version=${{ steps.get-release-version.outputs.release_version }}
49+
build_args: --check --force --version=${{ env.VERSION }}
5550
- name: run-component-tests
5651
uses: ./.github/actions/build-environment
5752
with:
58-
build_args: --test --force --version=${{ steps.get-release-version.outputs.release_version }}
53+
build_args: --test --force --version=${{ env.VERSION }}
5954
- name: release-components
6055
uses: ./.github/actions/build-environment
6156
env:
6257
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6358
with:
64-
build_args: --release --force --version=${{ steps.get-release-version.outputs.release_version }}
59+
build_args: --release --force --version=${{ env.VERSION }}
6560
pypi_token: ${{ secrets.PYPI_TOKEN }}
6661
pypi_repository: ${{ secrets.PYPI_REPOSITORY }}
6762
container_registry_url: ${{ secrets.CONTAINER_REGISTRY_URL }}
@@ -72,7 +67,7 @@ jobs:
7267
name: update-repository
7368
uses: stefanzweifel/git-auto-commit-action@v4
7469
with:
75-
branch: ${{ env.BRANCH_PREFIX }}${{ steps.get-release-version.outputs.release_version }}
70+
branch: ${{ env.BRANCH_PREFIX }}${{ env.VERSION }}
7671
commit_user_name: Release Bot
7772
commit_user_email: [email protected]
7873
commit_message: Apply automatic release changes
@@ -81,18 +76,18 @@ jobs:
8176
uses: tvdias/[email protected]
8277
with:
8378
repo-token: "${{ secrets.GITHUB_TOKEN }}"
84-
tag: v${{ steps.get-release-version.outputs.release_version }}
79+
tag: v${{ env.VERSION }}
8580
- if: ${{ env.GITHUB_TOKEN }}
8681
name: pull-request
8782
uses: repo-sync/pull-request@v2
8883
with:
89-
source_branch: ${{ env.BRANCH_PREFIX }}${{ steps.get-release-version.outputs.release_version }}
84+
source_branch: ${{ env.BRANCH_PREFIX }}${{ env.VERSION }}
9085
destination_branch: "main"
91-
pr_title: Finalize release for version ${{ steps.get-release-version.outputs.release_version }}
92-
pr_body: "Automated pull request for release version ${{ steps.get-release-version.outputs.release_version }}"
86+
pr_title: Finalize release for version ${{ env.VERSION }}
87+
pr_body: "Automated pull request for release version ${{ env.VERSION }}"
9388
pr_draft: false
9489
pr_allow_empty: true
95-
# only works if it exist: pr_milestone: v${{ steps.get-release-version.outputs.release_version }}
90+
# only works if it exist: pr_milestone: v${{ env.VERSION }}
9691
github_token: ${{ secrets.GITHUB_TOKEN }}
9792
# Fix of release drafter to allow different events to trigger the release
9893
- name: checkout-fixed-release-drafter
@@ -104,8 +99,8 @@ jobs:
10499
name: create-release-draft
105100
uses: ./.github/actions/release-drafter
106101
with:
107-
version: ${{ steps.get-release-version.outputs.release_version }}
108-
tag: v${{ steps.get-release-version.outputs.release_version }}
102+
version: ${{ env.VERSION }}
103+
tag: v${{ env.VERSION }}
109104
env:
110105
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
111106
# Optional: upload release assets via actions/upload-release-asset@v1

0 commit comments

Comments
 (0)