Skip to content

Sa 3607 gha ci workflow km #40

Sa 3607 gha ci workflow km

Sa 3607 gha ci workflow km #40

name: PowerShell Module CI
on:
pull_request:
branches:
- 'JumpCloudModule_**'
# Only .ps1 files
jobs:
clone:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
check_branch:
runs-on: ubuntu-latest
steps:
- name: Check Base Branch Name
# Find out base branch name
run: |
echo "Base Branch Name: ${{ github.base_ref }}12"
echo "Head Branch Name: ${{ github.head_ref }}"
echo "Head Branch Name: ${{ github.ref }}"
Publish-PowerShell-Artifact:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
Source: "CodeArtifact"
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
PowerShell
- shell: pwsh
run: |
. "./PowerShell/Deploy/BuildNuspecFromPsd1.ps1" -RequiredModulesRepo PSGallery