Skip to content

Commit fd4a843

Browse files
authored
Merge pull request #6 from pwshdevs/develop
Updating workflows
2 parents 645a689 + c88cd16 commit fd4a843

3 files changed

Lines changed: 28 additions & 15 deletions

File tree

.github/workflows/tag-release.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Create Tagged Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Trigger on pushes to the main branch
7+
8+
jobs:
9+
create_tagged_release:
10+
runs-on: ubuntu-latest
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
permissions:
14+
contents: write
15+
steps:
16+
- name: Create Tagged Release
17+
uses: dexwritescode/release-on-merge-action@v1 # Or another suitable action
18+
with:
19+
version-increment-strategy: patch
20+
initial-version: '1.0.0'
Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
name: Publish release
1+
name: Update Module Version
22

33
on:
44
push:
55
branches:
6-
- main # Trigger on pushes to the main branch
6+
- develop # Trigger on pushes to the main branch
77

88
jobs:
9-
publish_release:
9+
update_module_version:
1010
runs-on: ubuntu-latest
1111
env:
1212
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1313
permissions:
1414
contents: write
1515

1616
steps:
17-
- name: Checkout repository
18-
uses: actions/checkout@v4
17+
- name: checkout
18+
uses: actions/checkout@v2
1919

20-
- name: Create Version
20+
- name: Create Version From Current Tags
2121
uses: dexwritescode/release-on-merge-action@v1 # Or another suitable action
2222
id: version_tracker
2323
with:
@@ -33,11 +33,4 @@ jobs:
3333
uses: stefanzweifel/git-auto-commit-action@v5
3434
with:
3535
commit_message: "Automated Release Tagging for ${{ steps.version_tracker.outputs.version }} in DevSetup.psd1"
36-
branch: main
37-
tagging_message: 'v${{ steps.version_tracker.outputs.version }}'
38-
39-
#- name: Create Tagged Release
40-
# uses: dexwritescode/release-on-merge-action@v1 # Or another suitable action
41-
# with:
42-
# version-increment-strategy: patch
43-
# initial-version: '1.0.0'
36+
branch: develop

DevSetup/DevSetup.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'DevSetup.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.0.6'
15+
ModuleVersion = '1.0.7'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()

0 commit comments

Comments
 (0)