Skip version bump when release version matches workspace version (#5043)
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
parent
dcffece576
commit
ff785e582c
|
|
@ -78,6 +78,13 @@ jobs:
|
|||
- name: 'Set release name'
|
||||
id: set_release_name
|
||||
run: node scripts/ci/set-release-name.js ${{ matrix.workspace }} ${{ inputs.release_line || 'main' }}
|
||||
- name: 'Check current and release versions'
|
||||
id: check
|
||||
run: |
|
||||
if [[ "${{ steps.set_release_name.outputs.release_version }}" == "${{ steps.set_release_name.outputs.current_version }}" ]]; then
|
||||
echo "Backstage release version and current workspace version are the same, skipping version bump"
|
||||
exit 1 # Non-zero exit code fails the step and job
|
||||
fi
|
||||
- name: 'Configure git'
|
||||
run: |
|
||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
|
|
@ -97,7 +104,7 @@ jobs:
|
|||
YARN_ENABLE_IMMUTABLE_INSTALLS: false
|
||||
- name: Run dedupe
|
||||
working-directory: ./workspaces/${{ matrix.workspace }}
|
||||
run: yarn dedupe
|
||||
run: yarn dedupe
|
||||
- name: 'Check for changes'
|
||||
id: check_for_changes
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in New Issue