Skip to content

Commit

Permalink
#1051 - use the new arguments in the pipeline/action
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Mar 3, 2024
1 parent 6fd1bd9 commit 7a45c3f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .azure/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,17 @@ jobs:
node ./gitversion/setup/bundle.js
displayName: gitversion/setup
workingDirectory: dist/azure
- pwsh: node ./gitversion/execute/bundle.js
- pwsh: |
# set the inputs for the 'gitversion/execute' action
$env:INPUT_TARGETPATH = './'
$env:INPUT_DISABLECACHE = 'true'
$env:INPUT_DISABLENORMALIZATION = 'true'
$env:INPUT_OVERRIDECONFIG = '
next-version=1.0.0
update-build-number=false'
# run the 'gitversion/execute' action
node ./gitversion/execute/bundle.js
name: version
displayName: gitversion/execute
workingDirectory: dist/azure
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ jobs:
- name: gitversion/execute
id: gitversion # step id used as reference for output values
uses: ./gitversion/execute
with:
targetPath: './'
disableCache: true
disableNormalization: true
overrideConfig: |
next-version=1.0.0
update-build-number=false
- run: |
echo "Major (major) : ${{ env.major }}"
echo "Major (env.GitVersion_Major) : ${{ env.GitVersion_Major }}"
Expand Down

0 comments on commit 7a45c3f

Please sign in to comment.