Skip to content

Commit

Permalink
update publish-test.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Siyaram Meena committed Jul 14, 2024
1 parent cb7a04c commit ba55a32
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@ jobs:
if [[ "$azure_extension_version" != "$version" ]]; then
jq --arg version "$version" '.version = $version' vss-extension-dev.json > vss-extension-dev.json.tmp && mv vss-extension-dev.json.tmp vss-extension-dev.json
echo "Extension version has changed from $azure_extension_version to $version"
echo "NEW_VERSION=$version" >> $GITHUB_ENV
echo "Publishing extension with latest version: $version"
npm i -g tfx-cli
tfx extension publish --publisher TestCIPub --manifest-globs vss-extension-dev.json --token ${USER_TOKEN}
echo "Successful published extension..."
echo "Successful published extension..."
else
echo " no version update"
echo "NEW_VERSION=$version" >> $GITHUB_ENV
Expand Down Expand Up @@ -98,9 +97,9 @@ jobs:
echo "Successful updated version in vss-extension-dev.json..."
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: vss-extension-dev
name: extension-artifact
path: vss-extension-dev.json

# gh pr create --base main --head automatic_version_update --title "pr test" --body "Created by Github action" --fill
Expand Down

0 comments on commit ba55a32

Please sign in to comment.