Skip to content

Commit

Permalink
Fix bug with run-build-process composite action & azure/login spe…
Browse files Browse the repository at this point in the history
…ed-up (#51)
  • Loading branch information
JamesDawson authored Sep 11, 2024
1 parent b2f903e commit d52d3f8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/scripted-build-matrix-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ jobs:
fi
- name: Azure CLI login
if: ${{ steps.compilePhaseAzureCredentials_secret_check.outputs.available == 'true' }}
uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
uses: endjin/login@4ae41681a03e0285d0a85d578968b6ba937c23ee # forked version including hotfix from https://github.com/Azure/login/pull/431
with:
creds: ${{ secrets.compilePhaseAzureCredentials }}
enable-AzPSSession: true
Expand Down Expand Up @@ -229,7 +229,7 @@ jobs:
fi
- name: Azure CLI login
if: ${{ steps.testPhaseAzureCredentials_secret_check.outputs.available == 'true' }}
uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
uses: endjin/login@4ae41681a03e0285d0a85d578968b6ba937c23ee # forked version including hotfix from https://github.com/Azure/login/pull/431
with:
creds: ${{ secrets.testPhaseAzureCredentials }}
enable-AzPSSession: true
Expand Down Expand Up @@ -344,7 +344,7 @@ jobs:
fi
- name: Azure CLI login
if: ${{ steps.packagePhaseAzureCredentials_secret_check.outputs.available == 'true' }}
uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
uses: endjin/login@4ae41681a03e0285d0a85d578968b6ba937c23ee # forked version including hotfix from https://github.com/Azure/login/pull/431
with:
creds: ${{ secrets.packagePhaseAzureCredentials }}
enable-AzPSSession: true
Expand Down Expand Up @@ -401,7 +401,7 @@ jobs:
fi
- name: Azure CLI login
if: ${{ steps.publishPhaseAzureCredentials_secret_check.outputs.available == 'true' }}
uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
uses: endjin/login@4ae41681a03e0285d0a85d578968b6ba937c23ee # forked version including hotfix from https://github.com/Azure/login/pull/431
with:
creds: ${{ secrets.publishPhaseAzureCredentials }}
enable-AzPSSession: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/scripted-build-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
fi
- name: Azure CLI login
if: ${{ steps.compilePhaseAzureCredentials_secret_check.outputs.available == 'true' }}
uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
uses: endjin/login@4ae41681a03e0285d0a85d578968b6ba937c23ee # forked version including hotfix from https://github.com/Azure/login/pull/431
with:
creds: ${{ secrets.compilePhaseAzureCredentials }}
enable-AzPSSession: true
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
fi
- name: Azure CLI login
if: ${{ steps.testPhaseAzureCredentials_secret_check.outputs.available == 'true' }}
uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
uses: endjin/login@4ae41681a03e0285d0a85d578968b6ba937c23ee # forked version including hotfix from https://github.com/Azure/login/pull/431
with:
creds: ${{ secrets.testPhaseAzureCredentials }}
enable-AzPSSession: true
Expand Down Expand Up @@ -313,7 +313,7 @@ jobs:
fi
- name: Azure CLI login
if: ${{ steps.packagePhaseAzureCredentials_secret_check.outputs.available == 'true' }}
uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
uses: endjin/login@4ae41681a03e0285d0a85d578968b6ba937c23ee # forked version including hotfix from https://github.com/Azure/login/pull/431
with:
creds: ${{ secrets.packagePhaseAzureCredentials }}
enable-AzPSSession: true
Expand Down Expand Up @@ -369,7 +369,7 @@ jobs:
fi
- name: Azure CLI login
if: ${{ steps.publishPhaseAzureCredentials_secret_check.outputs.available == 'true' }}
uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
uses: endjin/login@4ae41681a03e0285d0a85d578968b6ba937c23ee # forked version including hotfix from https://github.com/Azure/login/pull/431
with:
creds: ${{ secrets.publishPhaseAzureCredentials }}
enable-AzPSSession: true
Expand Down
11 changes: 7 additions & 4 deletions actions/run-build-process/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ runs:
- name: Set defaults
id: set_defaults
run: |
echo "CODE_COVERAGE_SUMMARY_FILE=${{ inputs.codeCoverageSummaryDir || '_codeCoverage' }}" >> $GITHUB_ENV
echo "CODE_COVERAGE_SUMMARY_FILE=${{ inputs.codeCoverageSummaryFile || 'SummaryGithub.md' }}" >> $GITHUB_ENV
echo "DEFAULT_BUILD_TASKS=${{ (inputs.forcePublish == 'true' || startsWith(github.ref, 'refs/tags/')) && 'FullBuildAndPublish' || 'FullBuild' }}" >> $GITHUB_ENV
echo "inputs: ${{ toJson(inputs) }}"
echo "ref: ${{ github.ref }}"
echo "CODE_COVERAGE_SUMMARY_FILE=${{ inputs.codeCoverageSummaryDir || '_codeCoverage' }}" >> $GITHUB_OUTPUT
echo "CODE_COVERAGE_SUMMARY_FILE=${{ inputs.codeCoverageSummaryFile || 'SummaryGithub.md' }}" >> $GITHUB_OUTPUT
echo "DEFAULT_BUILD_TASKS=${{ (inputs.forcePublish == 'true' || startsWith(github.ref, 'refs/tags/')) && 'FullBuildAndPublish' || 'FullBuild' }}" >> $GITHUB_OUTPUT
shell: bash
- name: Debug Variables
if: env.ACTIONS_RUNNER_DEBUG == 'true'
Expand All @@ -113,12 +115,13 @@ runs:
fi
- name: Azure CLI login
if: ${{ steps.buildAzureCredentials_secret_check.outputs.available == 'true' }}
uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
uses: endjin/login@4ae41681a03e0285d0a85d578968b6ba937c23ee # forked version including hotfix from https://github.com/Azure/login/pull/431
with:
creds: ${{ inputs.buildAzureCredentials }}
enable-AzPSSession: true
- uses: endjin/Endjin.RecommendedPractices.GitHubActions/actions/run-scripted-build@main
id: run_build
name: Run Build
with:
displayName: Run Build
buildScriptPath: ${{ inputs.buildScriptPath }}
Expand Down
1 change: 1 addition & 0 deletions actions/run-scripted-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ runs:
name: ${{ inputs.displayName }}
run: |
$tasks = "${{ inputs.tasks }}" -split ","
Write-Host "Running Tasks: $tasks"
${{ inputs.buildScriptPath }} -Tasks $tasks `
-Configuration ${{ inputs.configuration }}
shell: pwsh
Expand Down

0 comments on commit d52d3f8

Please sign in to comment.