Skip to content

Commit 07ab92d

Browse files
authored
Merge pull request #199 from dataplat/develop
Fixing CI/CD (github workflows)
2 parents 5c8c9b3 + 40a966d commit 07ab92d

2 files changed

Lines changed: 14 additions & 16 deletions

File tree

.github/workflows/deploy-preview-module.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
on:
2-
push:
3-
branches:
4-
- develop
5-
paths-ignore:
6-
- CHANGELOG.md
7-
- .vscode/**
8-
- .github/**
9-
- images/**
10-
- tests/**
11-
- '**.md'
12-
- '**.yml'
2+
workflow_dispatch:
133
env:
144
buildFolderName: output
155
buildArtifactName: output
@@ -26,14 +16,14 @@ permissions:
2616
checks: write # to allow the workflow to create checks
2717
statuses: write # to allow the workflow to create statuses
2818

29-
# This workflow is triggered on push to the develop branch and deploys the module to the PowerShell Gallery as a preview version.
19+
# This workflow is triggered manually and deploys the module to the PowerShell Gallery as a preview version.
3020
jobs:
3121
Build_Stage_Package_Module:
3222
name: Package Module
3323
runs-on: ubuntu-latest
3424
steps:
3525
- name: Checkout Code
36-
uses: actions/checkout@v5
26+
uses: actions/checkout@v4
3727
with:
3828
ref: ${{ github.head_ref }} # checkout the correct branch name
3929
fetch-depth: 0
@@ -64,7 +54,7 @@ jobs:
6454
if: ${{ success() && (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/')) }}
6555
steps:
6656
- name: Checkout Code
67-
uses: actions/checkout@v5
57+
uses: actions/checkout@v4
6858
with:
6959
ref: ${{ github.head_ref }} # checkout the correct branch name
7060
fetch-depth: 0

.github/workflows/publish-module.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,19 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Checkout Code
32-
uses: actions/checkout@v5
32+
uses: actions/checkout@v4
3333
with:
3434
ref: ${{ github.head_ref }} # checkout the triggered ref (branch or tag)
3535
fetch-depth: 0
3636
token: ${{ secrets.GITHUB_TOKEN }}
37+
- name: Install GitVersion
38+
uses: gittools/actions/gitversion/setup@v0.9.15
39+
with:
40+
versionSpec: 5.x
41+
- name: Evaluate Next Version
42+
uses: gittools/actions/gitversion/execute@v0.9.15
43+
with:
44+
configFilePath: GitVersion.yml
3745
- name: Build & Package Module
3846
shell: pwsh
3947
run: ./build.ps1 -ResolveDependency -tasks pack
@@ -53,7 +61,7 @@ jobs:
5361
if: ${{ success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) }}
5462
steps:
5563
- name: Checkout Code
56-
uses: actions/checkout@v5
64+
uses: actions/checkout@v4
5765
with:
5866
ref: ${{ github.head_ref }} # checkout the triggered ref (branch or tag)
5967
fetch-depth: 0

0 commit comments

Comments
 (0)