Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ScubaGear module version from v1.1.1 to v16.16.16 #19

Closed
wants to merge 62 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
53509e9
Test run_update_opa.yml
buidav Mar 7, 2024
730b0a2
Create versions.ps1
buidav Mar 7, 2024
497a35b
Update run_update_opa.yml
buidav Mar 7, 2024
7a1736a
Update run_update_opa.yml
buidav Mar 7, 2024
383fa08
Update run_update_opa.yml
buidav Mar 7, 2024
e3956d2
Update run_update_opa.yml
buidav Mar 7, 2024
2dac030
Update run_update_opa.yml
buidav Mar 7, 2024
396fcf2
Update run_update_opa.yml
buidav Mar 7, 2024
5e15e7d
Update OPA version to v0.62.1
actions-user Mar 7, 2024
8692939
Update run_update_opa.yml
buidav Mar 7, 2024
64d1049
Update versions.ps1
buidav Mar 7, 2024
a0ee50f
Update run_update_opa.yml
buidav Mar 7, 2024
644e9bc
Update run_update_opa.yml
buidav Mar 7, 2024
fdf0964
Update versions.ps1
buidav Mar 7, 2024
9d9e7f5
Update run_update_opa.yml
buidav Mar 8, 2024
9260ff8
Update run_update_opa.yml
buidav Mar 8, 2024
f91de0a
Update run_update_opa.yml
buidav Mar 8, 2024
3e0fe32
Update run_update_opa.yml
buidav Mar 8, 2024
9f6568b
Update run_update_opa.yml
buidav Mar 8, 2024
98d1d63
Update run_update_opa.yml
buidav Mar 8, 2024
e7b9e75
Update run_update_opa.yml
buidav Mar 8, 2024
98f68fd
Update run_update_opa.yml
buidav Mar 8, 2024
f2e9a5d
Update run_update_opa.yml
buidav Mar 8, 2024
b4fb814
Update run_update_opa.yml
buidav Mar 8, 2024
d6392a6
Update run_update_opa.yml
buidav Mar 8, 2024
0e05a3d
Update run_update_opa.yml
buidav Mar 8, 2024
f17f593
Update run_update_opa.yml
buidav Mar 8, 2024
34d7810
Update run_update_opa.yml
buidav Mar 8, 2024
edb8a4c
Update run_update_opa.yml
buidav Mar 8, 2024
c7a4e32
Update run_update_opa.yml
buidav Mar 8, 2024
66eaea6
Create run_module_version_bump
buidav Mar 11, 2024
4f36485
Update run_module_version_bump
buidav Mar 11, 2024
fa3b672
Update and rename run_module_version_bump to run_module_version_bump.yml
buidav Mar 11, 2024
521343a
Update run_module_version_bump.yml
buidav Mar 11, 2024
1ba9602
Update run_module_version_bump.yml
buidav Mar 11, 2024
12f0493
Update run_module_version_bump.yml
buidav Mar 11, 2024
095b8da
Update run_module_version_bump.yml
buidav Mar 11, 2024
0d28d91
Update run_module_version_bump.yml
buidav Mar 11, 2024
fb0cc52
Update run_module_version_bump.yml
buidav Mar 11, 2024
15a2046
Update run_module_version_bump.yml
buidav Mar 11, 2024
9b61b04
Update run_module_version_bump.yml
buidav Mar 11, 2024
716ee1c
Update run_module_version_bump.yml
buidav Mar 11, 2024
f73361e
Update run_module_version_bump.yml
buidav Mar 11, 2024
6ab03a4
Update run_module_version_bump.yml
buidav Mar 11, 2024
6ecb994
Update run_module_version_bump.yml
buidav Mar 11, 2024
3a4d691
Update run_module_version_bump.yml
buidav Mar 11, 2024
18f0d37
Update run_module_version_bump.yml
buidav Mar 11, 2024
43cc6e4
Update run_module_version_bump.yml
buidav Mar 11, 2024
89fd155
Update run_module_version_bump.yml
buidav Mar 11, 2024
e5eab09
Update run_module_version_bump.yml
buidav Mar 11, 2024
7c4172c
Update run_module_version_bump.yml
buidav Mar 11, 2024
58430f8
Update run_module_version_bump.yml
buidav Mar 11, 2024
b588940
Update run_module_version_bump.yml
buidav Mar 11, 2024
74938e0
Update run_module_version_bump.yml
buidav Mar 11, 2024
8820230
Update run_module_version_bump.yml
buidav Mar 11, 2024
98d3496
Update run_module_version_bump.yml
buidav Mar 11, 2024
06362c5
Update run_module_version_bump.yml
buidav Mar 11, 2024
ddc5cff
Update run_module_version_bump.yml
buidav Mar 11, 2024
5dff549
Update run_module_version_bump.yml
buidav Mar 11, 2024
84caafd
Update run_module_version_bump.yml
buidav Mar 12, 2024
ea8784a
Update run_module_version_bump.yml
buidav Mar 12, 2024
2052862
Update ScubaGear version to 16.16.16
actions-user Mar 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update run_module_version_bump.yml
buidav authored Mar 11, 2024
commit 43cc6e48e3fbbf53f487255ca5b38d55f0f6c374
3 changes: 1 addition & 2 deletions .github/workflows/run_module_version_bump.yml
Original file line number Diff line number Diff line change
@@ -11,11 +11,11 @@
jobs:
module-version-bump:
runs-on: windows-latest
env:

Check failure on line 14 in .github/workflows/run_module_version_bump.yml

GitHub Actions / Lint / MegaLint YAML Check

14:9 [trailing-spaces] trailing spaces
NEW_VERSION_NUMBER: ${{ inputs.newVersionNumber }}
permissions:
contents: write
pull-requests: write

Check failure on line 18 in .github/workflows/run_module_version_bump.yml

GitHub Actions / Lint / MegaLint YAML Check

18:27 [trailing-spaces] trailing spaces
steps:
- name: Checkout code
uses: actions/checkout@v2
@@ -26,17 +26,17 @@
run: |
#
# Replace ScubaGear module version in the manifest.
#

Check failure on line 29 in .github/workflows/run_module_version_bump.yml

GitHub Actions / Lint / MegaLint YAML Check

29:12 [trailing-spaces] trailing spaces
$ManifestPath = '.\PowerShell\ScubaGear\ScubaGear.psd1'
$VersionRegex = "\'\d+\.\d+\.\d+\'"
$PreviousVersion = ''
(Get-Content -Path $ManifestPath) | ForEach-Object {
$ModuleVersionRegex = $_ -match "ModuleVersion = $($VersionRegex)"
if ($ModuleVersionRegex) {

Check failure on line 35 in .github/workflows/run_module_version_bump.yml

GitHub Actions / Lint / MegaLint YAML Check

35:39 [trailing-spaces] trailing spaces
$_ -match $VersionRegex
$PreviousVersion = $matches[0] -replace "'", ""
$_ -replace $VersionRegex, '${env:NEW_VERSION_NUMBER}'
}

Check failure on line 39 in .github/workflows/run_module_version_bump.yml

GitHub Actions / Lint / MegaLint YAML Check

39:14 [trailing-spaces] trailing spaces
else {
$_
}
@@ -55,7 +55,7 @@
$ZipVerMatch = $_ -match $ZipRegex
if ($BadgeVerMatch) {
$_ -replace $BadgeRegex, "ScubaGear-v${env:NEW_VERSION_NUMBER}"
}

Check failure on line 58 in .github/workflows/run_module_version_bump.yml

GitHub Actions / Lint / MegaLint YAML Check

58:15 [trailing-spaces] trailing spaces
elseif ($ZipVerMatch) {
$_ -replace $ZipRegex, $ZipVerReplace
}
@@ -64,7 +64,7 @@
}
} | Set-Content -Path $READMEPath

#

Check failure on line 67 in .github/workflows/run_module_version_bump.yml

GitHub Actions / Lint / MegaLint YAML Check

67:12 [trailing-spaces] trailing spaces
# Create the PR body
#
$PRTemplatePath = '.\.github\pull_request_template.md'
@@ -72,18 +72,18 @@
$Description = '<!-- Describe the "what" of your changes in detail. -->'
$Motivation = '<!-- Why is this change required? -->'
$Testing = '<!-- see how your change affects other areas of the code, etc. -->'

Check failure on line 75 in .github/workflows/run_module_version_bump.yml

GitHub Actions / Lint / MegaLint YAML Check

75:1 [trailing-spaces] trailing spaces
$NewDescription = "This PR was create by a GitHub Action to bump ScubaGear's module version in the manifest and the README. Please fill out the rest of the template that the Action did not cover. "
$NewMotivation = "Bump ScubaGear's module version to ${env:NEW_VERSION_NUMBER} before the next release"
$NewTesting = "A human should still check if the version bumping was successful."

Check failure on line 79 in .github/workflows/run_module_version_bump.yml

GitHub Actions / Lint / MegaLint YAML Check

79:1 [trailing-spaces] trailing spaces
$PRTemplateContent = (Get-Content -Path $PRTemplatePath) | ForEach-Object {
$DescriptionRegex = $_ -match $Description
$MotivationRegex = $_ -match $Motivation
$TestingRegex = $_ -match $Testing
if ($DescriptionRegex) {
$_ -replace $Description, $NewDescription
}

Check failure on line 86 in .github/workflows/run_module_version_bump.yml

GitHub Actions / Lint / MegaLint YAML Check

86:14 [trailing-spaces] trailing spaces
elseif ($MotivationRegex) {
$_ -replace $Motivation, $NewMotivation
}
@@ -103,5 +103,4 @@
git add .
git commit -m "Update ScubaGear version to ${env:NEW_VERSION_NUMBER}"
git push origin $ScubaGearVersionBumpBranch
gh pr create -B main
-H $ScubaGearVersionBumpBranch --title "Bump ScubaGear module version from v$($PreviousVersion) to v${env:NEW_VERSION_NUMBER}" --body "${$PRTemplateContent}"
gh pr create -B main -H $ScubaGearVersionBumpBranch --title "Bump ScubaGear module version from v$($PreviousVersion) to v${env:NEW_VERSION_NUMBER}" --body "${$PRTemplateContent}"