|
|
@@ -79,59 +79,6 @@ jobs:
|
|
|
submodules: "true"
|
|
|
path: "${{ env.OFW_PATH }}"
|
|
|
|
|
|
- - name: Print vars about state or repo if Unleashed
|
|
|
- if: ${{ matrix.src-included == 1 }}
|
|
|
- shell: pwsh
|
|
|
- run: |
|
|
|
- git log --pretty=format:'%s by %C(yellow)%an%Creset (%ad)%n %n%b' --date=local --abbrev-commit --max-count=1
|
|
|
- git submodule set-branch --branch master '${{ env.RELATIVE_PATH }}'
|
|
|
- git submodule sync '${{ env.RELATIVE_PATH }}'
|
|
|
- cd '${{ env.OFW_PATH }}'
|
|
|
- if ( '${{ env.CURRENT_VERSION }}' -ne '${{ env.RELEASE_VERSION }}' ) {
|
|
|
- Write-Output '::warning title=Different version::Current version is ${{ env.CURRENT_VERSION }} but we trying to build ${{ env.RELEASE_VERSION }}'
|
|
|
-
|
|
|
- git checkout tags/v${{ env.RELEASE_VERSION }} -b tmp-build
|
|
|
-
|
|
|
- if ( $LASTEXITCODE -ne 0 ) {
|
|
|
- Write-Output '::warning title=Cannot checkout to this version::Error during execution checkout to this tag ${{ env.RELEASE_VERSION }}'
|
|
|
- #exit 1
|
|
|
- }
|
|
|
- } else {
|
|
|
- $output = (git log --pretty=format:'%s by %C(yellow)%an%Creset (%ad)%n %n%b' --date=local --abbrev-commit --max-count=1)
|
|
|
-
|
|
|
- if ( $LASTEXITCODE -ne 0 ) {
|
|
|
- Write-Error '::error title=Invalid checkout::Invalid checkout'
|
|
|
- exit 1
|
|
|
- }
|
|
|
- Write-Output ('::notice title=Git output::{0}' -f $output)
|
|
|
- }
|
|
|
-
|
|
|
- - name: Print vars about state or repo if Official
|
|
|
- if: ${{ matrix.src-included == 0 }}
|
|
|
- shell: pwsh
|
|
|
- run: |
|
|
|
- git log --pretty=format:'%s by %C(yellow)%an%Creset (%ad)%n %n%b' --date=local --abbrev-commit --max-count=1
|
|
|
- cd '${{ env.OFW_PATH }}'
|
|
|
-
|
|
|
- if ( '${{ env.CURRENT_VERSION }}' -ne '${{ env.RELEASE_VERSION }}' ) {
|
|
|
- Write-Output '::warning title=Different version::Current version is ${{ env.CURRENT_VERSION }} but we trying to build ${{ env.RELEASE_VERSION }}'
|
|
|
-
|
|
|
- git checkout tags/v${{ env.RELEASE_VERSION }} -b tmp-build
|
|
|
-
|
|
|
- if ( $LASTEXITCODE -ne 0 ) {
|
|
|
- Write-Output '::warning title=Cannot checkout to this version::Error during execution checkout to this tag ${{ env.RELEASE_VERSION }}'
|
|
|
- #exit 1
|
|
|
- }
|
|
|
- } else {
|
|
|
- $output = (git log --pretty=format:'%s by %C(yellow)%an%Creset (%ad)%n %n%b' --date=local --abbrev-commit --max-count=1)
|
|
|
-
|
|
|
- if ( $LASTEXITCODE -ne 0 ) {
|
|
|
- Write-Error '::error title=Invalid checkout::Invalid checkout'
|
|
|
- exit 1
|
|
|
- }
|
|
|
- Write-Output ('::notice title=Git output::{0}' -f $output)
|
|
|
- }
|
|
|
-
|
|
|
# - name: Restore FBT
|
|
|
# id: cache-restore
|
|
|
# if: ${{ success() }}
|