Skip to content

Commit ec8ba72

Browse files
Use step output to get package file name
1 parent 0581d1d commit ec8ba72

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/publish.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ jobs:
2828
run: dotnet tool install Umbraco.Tools.Packages --global
2929

3030
- name: Get Umbraco package file name
31-
run: |
32-
$packageFile = Get-Item *.zip | Select-Object -First 1 -ExpandProperty Name
33-
echo "OURUMBRACO_PACKAGE=$packageFile" >> $GITHUB_ENV
31+
id: get_package
32+
run: echo ::set-output name=PACKAGE::$(Get-Item *.zip | Select-Object -First 1 -ExpandProperty Name)
3433

3534
- name: Push to Our.Umbraco
36-
run: umbpack push "${{ env.OURUMBRACO_PACKAGE }}" -k "$env:apiKey" -a *
35+
run: umbpack push "${{ steps.get_package.outputs.PACKAGE }}" -k "$env:apiKey" -a *
3736
env:
3837
apiKey: ${{ secrets.OURUMBRACO_API_KEY }}
3938

0 commit comments

Comments
 (0)