mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-15 04:34:46 +00:00
getting git version & checking command validity
This commit is contained in:
16
.github/workflows/docker.yml
vendored
16
.github/workflows/docker.yml
vendored
@@ -27,17 +27,23 @@ jobs:
|
|||||||
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
|
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
|
||||||
git submodule sync --recursive
|
git submodule sync --recursive
|
||||||
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
|
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
|
||||||
|
- name: Testing git command
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
Write-Host $(git --version)
|
||||||
|
Write-Host $(git tag --merged master)
|
||||||
|
|
||||||
# - name: Set Build to Release if triggered from Master
|
# - name: Set Build to Release if triggered from Master
|
||||||
# run: |
|
# run: |
|
||||||
# if("$($Env:GITHUB_REF)".contains("$($Env:RELEASE_BRANCH)")) {
|
# if("$($Env:GITHUB_REF)".contains("$($Env:RELEASE_BRANCH)")) {
|
||||||
# Write-Host "Setting build type to Release"
|
# Write-Host "Setting build type to Release"
|
||||||
# Write-Output "::set-env name=BUILD_TYPE::Release"
|
# Write-Output "::set-env name=BUILD_TYPE::Release"
|
||||||
# }
|
# }
|
||||||
- name: Set Version Number
|
# - name: Set Version Number
|
||||||
shell: powershell
|
# shell: powershell
|
||||||
run: |
|
# run: |
|
||||||
$version = ./.github/scripts/GenerateVersionNumber.ps1
|
# $version = ./.github/scripts/GenerateVersionNumber.ps1
|
||||||
Write-Output "::set-env name=VERSION::$version"
|
# Write-Output "::set-env name=VERSION::$version"
|
||||||
# - name: Update AssemblyInfo.cs
|
# - name: Update AssemblyInfo.cs
|
||||||
# shell: powershell
|
# shell: powershell
|
||||||
# run: |
|
# run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user