-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (39 loc) · 1.19 KB
/
semanticModel-DEV.yml
File metadata and controls
47 lines (39 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: SemanticModel-DEV
# Controls when the workflow will run
on:
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
whatIf:
description: 'Enable WhatIf Mode'
type: boolean
required: true
default: true
env:
PROFILE: Model
jobs:
Deployment:
runs-on: ubuntu-latest
environment: Development
container:
image: ghcr.io/pbi-tools/pbi-tools-preview:latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: pbi-tools info
run: |
/app/pbi-tools/pbi-tools.core info
- name: pbi-tools deploy (WhatIf)
if: ${{ github.event.inputs.whatIf == 'true' }}
run: |
/app/pbi-tools/pbi-tools.core deploy . "$PROFILE" -whatIf
env:
PBI_CLIENT_SECRET: ${{ secrets.PBI_CLIENT_SECRET }}
- name: pbi-tools deploy
if: ${{ github.event.inputs.whatIf != 'true' }}
run: |
/app/pbi-tools/pbi-tools.core deploy . "$PROFILE"
env:
PBI_CLIENT_SECRET: ${{ secrets.PBI_CLIENT_SECRET }}