Skip to content

Commit

Permalink
SparseCheckout
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayanmullick committed Apr 9, 2024
1 parent 7fe8d4d commit 523eb78
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/AzPS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ jobs:
steps:

- name: Check Out
uses: actions/checkout@v4
#with: #Checkout presents the repo to the Pipeline execution runtime.
# ref: main # Specify the branch or commit
# path: 3TierApp/ # Specify the folder path if the script doesn't need the entire repo for execution.
#However, this is presenting the entire repo under a '3TierApp' folder. Verified using 'Get-ChildItem -Recurse'
#https://github.com/marketplace/actions/checkout
#https://github.com/actions/checkout/blob/cd7d8d697e10461458bc61a30d094dc601a8b017/.github/workflows/check-dist.yml#L50 #Example
uses: actions/checkout@v4 #with: #Checkout presents the repo to the Pipeline execution runtime.
with:
fetch-depth: 1
sparse-checkout: GHActionTest/


- name: Login Azure
uses: azure/login@v2
Expand All @@ -26,7 +24,7 @@ jobs:
- name: Run Azure PowerShell Script File
uses: azure/powershell@v2
with:
inlineScript: ./GHActionTest/GetRG.ps1
inlineScript: Get-ChildItem -Recurse
azPSVersion: 'latest'

- name: TestStep
Expand Down

0 comments on commit 523eb78

Please sign in to comment.