Skip to content

Commit e9ccd78

Browse files
facusantilloFacundo Santillo Alarcon
andauthored
fix set build number (#15)
Co-authored-by: Facundo Santillo Alarcon <facundo.santillo@wolterskluwers.com>
1 parent 3b0c578 commit e9ccd78

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

.github/workflows/ci-pipeline.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
setup:
18-
if: github.event.before != '0000000000000000000000000000000000000000'
18+
if: github.event_name == 'pull_request' || github.event.before != '0000000000000000000000000000000000000000'
1919
name: setup
2020
runs-on: ubuntu-latest
2121

@@ -46,16 +46,6 @@ jobs:
4646

4747
# Set the build number based on GitVersion and PR number
4848
- name: Set Build Number
49-
if: github.event_name == 'pull_request'
50-
run: |
51-
PR_NUMBER=${{ github.event.pull_request.number }}
52-
VERSION="${{ steps.gitversion.outputs.semver }}"
53-
echo "Build number: $VERSION"
54-
echo "GITHUB_RUN_NUMBER=$VERSION" >> $GITHUB_ENV
55-
56-
# Set the build number based on GitVersion (release|main)
57-
- name: Set Build Number for Main|Release
58-
if: github.event_name != 'pull_request'
5949
run: |
6050
VERSION="${{ steps.gitversion.outputs.semver }}"
6151
echo "Build number: $VERSION"

0 commit comments

Comments
 (0)