Skip to content

Commit 47a2b24

Browse files
authored
Merge pull request #12 from pwshdevs/update-workflow
Fixing workflow to work with new branch permissions.
2 parents 3261c93 + 7b5abc7 commit 47a2b24

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/update-module-version.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- develop # Trigger on pushes to the main branch
7+
workflow_dispatch:
78

89
jobs:
910
update_module_version:
@@ -29,8 +30,15 @@ jobs:
2930
run: |
3031
perl -pi -e 's/[0-9]\.[0-9]\.[0-9]/${{ steps.version_tracker.outputs.version }}/' DevSetup/DevSetup.psd1
3132
32-
- name: Commit and push changes
33-
uses: stefanzweifel/git-auto-commit-action@v5
33+
# - name: Commit and push changes
34+
# uses: stefanzweifel/git-auto-commit-action@v5
35+
# with:
36+
# commit_message: "Automated Release Tagging for ${{ steps.version_tracker.outputs.version }} in DevSetup.psd1"
37+
# branch:
38+
- name: Create Pull Request
39+
uses: peter-evans/create-pull-request@v7
3440
with:
35-
commit_message: "Automated Release Tagging for ${{ steps.version_tracker.outputs.version }} in DevSetup.psd1"
36-
branch: develop
41+
commit-message: Automated Release Tagging for ${{ steps.version_tracker.outputs.version }} in DevSetup.psd1
42+
title: Automated Release Tagging for ${{ steps.version_tracker.outputs.version }} in DevSetup.psd1
43+
body: Changing version to ${{ steps.version_tracker.outputs.version }}
44+
branch: update-release-version-to-${{ steps.version_tracker.outputs.version }}

DevSetup/Private/Providers/Homebrew/Install-Homebrew.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Describe "Install-Homebrew" {
5050
Param($Name)
5151
switch($Name) {
5252
"SHELL" { return "/bin/bash" }
53-
"HOME" { return "/Users/TestUser" }
53+
"HOME" { return "/home/testuser" }
5454
}
5555
}
5656
Mock Add-Content { }

0 commit comments

Comments
 (0)