Skip to content

Commit 7fcb622

Browse files
feat: Add GitHub Actions workflow for automated release process
- Created a new GitHub Actions workflow (`Release.yml`) to automate the release process on pull request events. - Configured permissions for creating releases and commenting on pull requests. feat: Implement Helpers module with versioning - Added `Helpers.psd1` and `Helpers.psm1` files to define the Helpers module with version `999.0.0`. - Implemented various utility functions for module management and dependency resolution. test: Add PSScriptAnalyzer configuration for Helpers module - Created `PSScriptAnalyzer.Tests.psd1` to define rules for code quality checks on the Helpers module. chore: Implement main script for module importation - Added `main.ps1` script to handle the importation of the Helpers module into the PowerShell session. - Ensured cleanup of previous module instances before importing the new version.
1 parent a4bf8bb commit 7fcb622

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Auto-Release
1+
name: Release
22

3-
run-name: "Auto-Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
3+
run-name: "Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
44

55
on:
6-
pull_request_target:
6+
pull_request:
77
branches:
88
- main
99
types:
@@ -12,6 +12,9 @@ on:
1212
- reopened
1313
- synchronize
1414
- labeled
15+
paths:
16+
- 'action.yml'
17+
- 'src/**'
1518

1619
concurrency:
1720
group: ${{ github.workflow }}-${{ github.ref }}
@@ -22,13 +25,15 @@ permissions:
2225
pull-requests: write # Required to create comments on the PRs
2326

2427
jobs:
25-
Auto-Release:
28+
Release:
2629
runs-on: ubuntu-latest
2730
steps:
2831
- name: Checkout Code
2932
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
33+
with:
34+
persist-credentials: false
3035

31-
- name: Auto-Release
36+
- name: Release
3237
uses: PSModule/Auto-Release@eabd533035e2cb9822160f26f2eda584bd012356 # v1.9.5
3338
env:
3439
GITHUB_TOKEN: ${{ github.token }}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ runs:
1212
shell: pwsh
1313
run: |
1414
# Install-PSModuleHelpers
15-
${{ github.action_path }}/scripts/main.ps1
15+
${{ github.action_path }}/src/main.ps1
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)