-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f1d95a
commit ac70fa0
Showing
1 changed file
with
9 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,26 +28,16 @@ jobs: | |
id: project-version | ||
uses: 'euberdeveloper/ga-project-version@main' | ||
|
||
- name: Increase patch version by 1 | ||
id: increase-patch-version | ||
run: | | ||
$currentVersion = "${{ steps.project-version.outputs.version }}" | ||
$versionArray = $currentVersion -split '\.' | ||
$patchVersion = [int]$versionArray[2] + 1 | ||
$newVersion = "$($versionArray[0]).$($versionArray[1]).$patchVersion" | ||
Write-Output "::set-output name=patch_version::$newVersion" | ||
- name: Set Git user email and name | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Cameron" | ||
- name: 'change version' | ||
uses: reedyuk/[email protected] | ||
- name: 'Automated Version Bump' | ||
uses: 'phips28/gh-action-bump-version@master' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
version: ${{ steps.patch-version.outputs.patch_version }} | ||
git-tag-version: 'true' | ||
commit-message: 'CI: bumps version to {{version}} [skip ci]' | ||
|
||
- name: Get version of the project | ||
id: project-version-after | ||
uses: 'euberdeveloper/ga-project-version@main' | ||
|
||
- name: Set up conda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
|
@@ -73,10 +63,6 @@ jobs: | |
run: npm run electron:package:win | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Get version of the project | ||
id: project-version-after | ||
uses: 'euberdeveloper/ga-project-version@main' | ||
|
||
- name: Get latest release number | ||
id: get_latest_release | ||
|