Skip to content

Commit

Permalink
Rename new_tag variable to new_version
Browse files Browse the repository at this point in the history
  • Loading branch information
ll-nick committed Nov 29, 2024
1 parent ac55626 commit 7ed6dc8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/bump-version-and-create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
permissions:
contents: write
outputs:
new_tag: ${{ steps.bump_version.outputs.new_tag }}
new_version: ${{ steps.bump_version.outputs.new_version }}
steps:
- name: Check out the repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -49,18 +49,18 @@ jobs:

- name: Update version file with new version
run: |
echo "New version: ${{ needs.compute-version.outputs.new_tag }}"
echo "VERSION=${{ needs.compute-version.outputs.new_tag }}" > version
echo "New version: ${{ needs.compute-version.outputs.new_version }}"
echo "VERSION=${{ needs.compute-version.outputs.new_version }}" > version
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add version
git commit -m "chore: update version file to ${{ needs.compute-version.outputs.new_tag }}"
git commit -m "chore: update version file to ${{ needs.compute-version.outputs.new_version }}"
git push
- name: Push new tag
run: |
git tag ${{ needs.compute-version.outputs.new_tag }}
git push origin ${{ needs.compute-version.outputs.new_tag }}
git tag ${{ needs.compute-version.outputs.new_version }}
git push origin ${{ needs.compute-version.outputs.new_version }}
create-release:
Expand All @@ -73,7 +73,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ needs.compute-version.outputs.new_tag }}
ref: ${{ needs.compute-version.outputs.new_version }}

- name: Build release packages
uses: docker/build-push-action@v6
Expand All @@ -93,7 +93,7 @@ jobs:
uses: ncipollo/release-action@v1
with:
artifacts: "/tmp/artifacts/release/*"
tag: ${{ needs.compute-version.outputs.new_tag }}
tag: ${{ needs.compute-version.outputs.new_version }}
body: ${{ github.event.pull_request.body }}


Expand All @@ -105,11 +105,11 @@ jobs:
uses: docker/build-push-action@v6
with:
build-args: |
RELEASE_DOWNLOAD_URL=https://github.com/KIT-MRT/util_caching/releases/download/${{ needs.compute-version.outputs.new_tag }}
RELEASE_DOWNLOAD_URL=https://github.com/KIT-MRT/util_caching/releases/download/${{ needs.compute-version.outputs.new_version }}
push: false
tags: release_tester
target: release_test

- name: Run unit tests with/against released version
run: |
docker run --rm release_tester
docker run --rm release_tester

0 comments on commit 7ed6dc8

Please sign in to comment.