diff options
author | Vedant <83997633+vedantmgoyal2009@users.noreply.github.com> | 2023-04-10 17:20:39 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 13:50:39 +0200 |
commit | 58433285b964beb66317877d492fdf5ad113426b (patch) | |
tree | b6285fd24894160d620e7ed611ea438c7a13007a | |
parent | 0e4086b74189c2b31ce63c6c5e85124edaf20d08 (diff) | |
download | rneovim-58433285b964beb66317877d492fdf5ad113426b.tar.gz rneovim-58433285b964beb66317877d492fdf5ad113426b.tar.bz2 rneovim-58433285b964beb66317877d492fdf5ad113426b.zip |
ci(release/winget): get msi from previous job instead of downloading
-rw-r--r-- | .github/workflows/release.yml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 219ad0288f..c6d0c39402 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -225,13 +225,15 @@ jobs: identifier: Neovim.Neovim release-tag: ${{ github.event.inputs.tag_name || github.ref_name }} token: ${{ secrets.WINGET_TOKEN }} + - name: Fetch nightly build msi from previous job + if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name == 'nightly') + uses: actions/download-artifact@v3 - if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name == 'nightly') - name: Get nightly version + name: Get version from nightly build msi id: get-version run: | - Invoke-WebRequest https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.msi -OutFile setup.msi Install-Module -Name 'Carbon.Windows.Installer' -Force - $VERSION = (Get-CMsi (Resolve-Path .\setup.msi).Path).ProductVersion + $VERSION = (Get-CMsi (Resolve-Path .\nvim-win64\nvim-win64.msi).Path).ProductVersion "version=$VERSION" >> $env:GITHUB_OUTPUT - if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name == 'nightly') name: Publish nightly |