Sa 3607 gha ci workflow km #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PowerShell Module CI | |
on: | |
pull_request: | |
branches: | |
- 'JumpCloudModule_**' | |
paths: | |
- '**.ps1' | |
- '!**.md' | |
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 |