diff --git a/.github/OsvvmRegression.pro b/.github/OsvvmRegression.pro index a242cf9..1c63aa1 100644 --- a/.github/OsvvmRegression.pro +++ b/.github/OsvvmRegression.pro @@ -1,4 +1,4 @@ set ::osvvm::FailOnBuildErrors "false" include ../OsvvmLibraries.pro -include ../RunAllTests.pro -include ../RunAllTestsVti.pro +# include ../RunAllTests.pro +# include ../RunAllTestsVti.pro diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index 5d4a303..2450174 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -8,6 +8,34 @@ on: - cron: '0 15 * * *' jobs: + Variables: + name: Compute pipeline variables + runs-on: ubuntu-24.04 + outputs: + branch: ${{ steps.Variables.outputs.branch }} + tag: ${{ steps.Variables.outputs.tag }} + steps: + - name: Compute variables + id: Variables + run: | + ref="${{ github.ref }}" + + branch="" + tag="2025.xx" + if [[ "${{ startsWith(github.ref, 'refs/heads/') }}" == "true" ]]; then + branch="${ref:11}" + elif [[ "${{ startsWith(github.ref, 'refs/tags/') }}" == "true" ]]; then + tag="${ref:10}" + else + printf "::error title=%s::%s\n" "Variables" "Unsupported Git reference format: '${ref}'." + exit 1 + fi + + tee "${GITHUB_OUTPUT}" <