Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacrlevin committed Dec 26, 2023
1 parent b5295fe commit df9b991
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/Choco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,17 @@ jobs:
name: SigningScripts
path: .\SigningScripts

- name: Get Version from Artifact (Push)
- name: Set VERSION Environment Variable (PUSH)
if: ${{ github.event_name == 'push' }}
run: |
$version = Get-Content .\SigningScripts\version.txt
$version = Get-Content ".\SigningScripts\version.txt"
echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: powershell

- name: Get Version from Input (Workflow Dispatch)
- name: Set VERSION Environment Variable (Workflow Dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
version = "${{ inputs.Version }}"
shell: powershell

- name: Populate Version Environment Variable
run: |
echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: powershell

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/Deploy_Desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ jobs:
uses: isaacrlevin/presencelight/.github/workflows/Choco.yml@main
secrets: inherit


Deploy_Store:
needs: Deploy_Azure_Blob
if: ${{ github.event_name != 'pull_request' }}
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/WinGet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,19 @@ jobs:
name: SigningScripts
path: ./SigningScripts

- name: Get Version from Artifact (Push)
- name: Set VERSION Environment Variable (PUSH)
if: ${{ github.event_name == 'push' }}
run: |
version=$(<"./SigningScripts/version.txt")
echo $version
$version = Get-Content "./SigningScripts/version.txt"
echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: pwsh

- name: Get Version from Input (Workflow Dispatch)
- name: Set VERSION Environment Variable (Workflow Dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
version = "${{ inputs.Version }}"
echo $version
- name: Populate Version Environment Variable
run: |
echo "VERSION=$version" >> $GITHUB_ENV
echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: pwsh

- name: Create manifest and submit PR
working-directory: ${{ github.workspace }}/SigningScripts/winget
Expand Down

0 comments on commit df9b991

Please sign in to comment.