Skip to content

Commit e142a97

Browse files
Merge pull request KelvinTegelaar#1730 from lacymooretx/fix/pwpush-pro-field-mismatch
Fix PWPush Pro account dropdown not populating
2 parents 5d4d0c4 + 3d522d3 commit e142a97

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
2+
# More GitHub Actions for Azure: https://github.com/Azure/actions
3+
4+
name: Build and deploy Powershell project to Azure Function App - cippkdsva
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
env:
13+
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
14+
15+
jobs:
16+
deploy:
17+
runs-on: windows-latest
18+
19+
steps:
20+
- name: 'Checkout GitHub Action'
21+
uses: actions/checkout@v4
22+
23+
- name: 'Run Azure Functions Action'
24+
uses: Azure/functions-action@v1
25+
id: fa
26+
with:
27+
app-name: 'cippkdsva'
28+
slot-name: 'Production'
29+
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
30+
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_9BFC7AE407A849B7AC30AC56DFA1F49E }}

Modules/CippExtensions/Public/PwPush/Get-PwPushAccount.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function Get-PwPushAccount {
22
$Table = Get-CIPPTable -TableName Extensionsconfig
33
$Configuration = ((Get-CIPPAzDataTableEntity @Table).config | ConvertFrom-Json).PWPush
4-
if ($Configuration.Enabled -eq $true -and $Configuration.PWPushPro -eq $true) {
4+
if ($Configuration.Enabled -eq $true -and $Configuration.UseBearerAuth -eq $true) {
55
Set-PwPushConfig -Configuration $Configuration
66
Get-PushAccount
77
} else {

0 commit comments

Comments
 (0)