From 59a3f8b0c679bea1b6ce0c3a7aa45b7f2e74d1bb Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Mon, 14 Nov 2022 19:01:41 -0500 Subject: [PATCH] Update ResourceIntegration.yml --- .github/workflows/ResourceIntegration.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ResourceIntegration.yml b/.github/workflows/ResourceIntegration.yml index 0bfacbeae..1be1c3a22 100644 --- a/.github/workflows/ResourceIntegration.yml +++ b/.github/workflows/ResourceIntegration.yml @@ -1,5 +1,6 @@ name: Resource Integration on: [push] + jobs: ResourceIntegration: runs-on: windows-latest @@ -9,12 +10,15 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 # OR "2" -> To retrieve the preceding commit. + - name: Get changed files id: changed-files uses: tj-actions/changed-files@v34 + + - uses: actions/checkout@v2 - name: Install Microsoft365DSC shell: powershell run: | @@ -28,7 +32,7 @@ jobs: env: PUBLIC_USERNAME: ${{ secrets.PUBLIC_USERNAME }} PUBLIC_PASSWORD: ${{ secrets.PUBLIC_PASSWORD }} - APPLICATIONID: ${{ secrets.APPLICATIdONID }} + APPLICATIONID: ${{ secrets.APPLICATIONID }} TENANTID: ${{ secrets.TENANTID }} CERTIFICATETHUMBPRINT: ${{ secrets.CERTIFICATETHUMBPRINT }} APPLICATIONSECRET: ${{ secrets.APPLICATIONSECRET }} @@ -37,7 +41,6 @@ jobs: Get-ChildItem "C:\Program Files\WindowsPowerShell\Modules" -Recurse | Unblock-File $files = "${{ steps.changed-files.outputs.all_changed_files }}".Split(' ') $modifiedResources = @() - Write-Host "TENANT -&&- $env:TENANTID" foreach ($file in $files) { Write-Host "Current File -> $file" @@ -59,9 +62,9 @@ jobs: $Credential = New-Object System.Management.Automation.PSCredential ($env:PUBLIC_USERNAME, $CredPassword) $params = @{ Credential = $Credential - ApplicationId = "$env:APPLICATIONID" - TenantId = "$env:TENANTID" - CertificateThumbprint = "$env:CERTIFICATETHUMBPRINT" + ApplicationId = $env:APPLICATIONID + TenantId = $env:TENANTID + CertificateThumbprint = $env:CERTIFICATETHUMBPRINT ApplicationSecret = New-Object System.Management.Automation.PSCredential("ApplicationSecret", $CredSecret) } & $integrationTestPath @params @@ -72,3 +75,4 @@ jobs: } } } +