Skip to content

Commit 5336a44

Browse files
committed
ci(pipeline.yml): #275 use cog-bump custom action for calculating new release version
1 parent 247878c commit 5336a44

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/pipeline.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,15 @@ jobs:
142142
run: git fetch --tags origin
143143
shell: bash
144144
- id: bump-version
145-
uses: armakuni/github-actions/bump-version@main
145+
uses: abhisheksr01/github-actions/[email protected]
146+
with:
147+
dry-run: true
146148
- name: check-bump-version-output
147149
run: |
148-
echo "version-was-bump: ${{ steps.bump-version.outputs.version-was-bump }}"
149150
echo "previous-version: ${{ steps.bump-version.outputs.previous-version }}"
151+
echo "bump-version: ${{ steps.bump-version.outputs.bump-version }}"
150152
echo "current-version: ${{ steps.bump-version.outputs.current-version }}"
153+
echo "is-version-bumped: ${{ steps.bump-version.outputs.is-version-bumped }}"
151154
shell: bash
152155
- name: Login to Docker Hub
153156
uses: docker/login-action@v3
@@ -177,7 +180,7 @@ jobs:
177180
- name: Build and push
178181
uses: docker/build-push-action@v6
179182
with:
180-
push: ${{ github.event_name != 'pull_request' && steps.bump-version.outputs.version-was-bump == 'true' }} # Only push on main branch & when version is bumped
183+
push: ${{ github.event_name != 'pull_request' && steps.bump-version.outputs.is-version-bumped == 'true' }} # Only push on main branch & when version is bumped
181184
tags: ${{ steps.meta.outputs.tags }}
182185
labels: ${{ steps.meta.outputs.labels }}
183186
sbom: true

0 commit comments

Comments
 (0)