Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit f869db1

Browse files
committed
Read provided tag before the ref
1 parent 4a1fc4e commit f869db1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-cli.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
env:
1818
MS_NUGET_URL: https://nuget.pkg.github.com/microsoft/index.json
1919
MSGRAPH_NUGET_URL: https://nuget.pkg.github.com/microsoftgraph/index.json
20-
PACKAGE_VERSION: ${{github.ref_name || github.event.inputs.tag || 'v0.1.0'}}
20+
PACKAGE_VERSION: ${{github.event.inputs.tag || github.ref_name || 'v0.1.0'}}
2121
PACKAGE_ZIP_TEMPLATE: "msgraph-cli-{0}-{1}.zip"
2222
OUTPUT_DIR: /tmp/publish
2323
steps:
@@ -54,6 +54,6 @@ jobs:
5454
zip ${{format(env.PACKAGE_ZIP_TEMPLATE, matrix.rid, steps.get-version.outputs.version)}} $(ls -a)
5555
- name: Add to release
5656
run: |
57-
gh release upload ${{github.ref_name}} ${{env.OUTPUT_DIR}}/${{format(env.PACKAGE_ZIP_TEMPLATE, matrix.rid, steps.get-version.outputs.version)}} --clobber
57+
gh release upload ${{env.PACKAGE_VERSION}} ${{env.OUTPUT_DIR}}/${{format(env.PACKAGE_ZIP_TEMPLATE, matrix.rid, steps.get-version.outputs.version)}} --clobber
5858
env:
5959
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)