From 31b20dea2bb5ac51c495c913a958a045297138aa Mon Sep 17 00:00:00 2001 From: Abdoulbari Zakir Date: Mon, 19 Feb 2024 15:57:11 +0100 Subject: [PATCH] checkout specific branch --- .github/workflows/new_release.yml | 5 +++++ .github/workflows/ubuntu.yml | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/new_release.yml b/.github/workflows/new_release.yml index 70485d0a08..c65ca9dc1e 100644 --- a/.github/workflows/new_release.yml +++ b/.github/workflows/new_release.yml @@ -43,6 +43,7 @@ jobs: uses: ./.github/workflows/ubuntu.yml with: run-tests: ${{ inputs.run-tests }} + target_branch: ${{ inputs.target_branch }} windows: name: Release - Windows @@ -50,6 +51,7 @@ jobs: uses: ./.github/workflows/windows-vcpkg.yml with: run-tests: ${{ inputs.run-tests }} + target_branch: ${{ inputs.target_branch }} centos7: name: Release - centos7 @@ -57,6 +59,7 @@ jobs: uses: ./.github/workflows/centos7.yml with: run-tests: ${{ inputs.run-tests }} + target_branch: ${{ inputs.target_branch }} oracle8: name: Release - oracle8 @@ -64,6 +67,7 @@ jobs: uses: ./.github/workflows/oracle8.yml with: run-tests: ${{ inputs.run-tests }} + target_branch: ${{ inputs.target_branch }} user_guide: name: User Guide @@ -71,3 +75,4 @@ jobs: uses: ./.github/workflows/build-userguide.yml with: run-tests: ${{ inputs.run-tests }} + target_branch: ${{ inputs.target_branch }} diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 45df558b90..d36f463a35 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -17,6 +17,9 @@ on: run-tests: required: true type: string + target_branch: + required: true + type: string env: GITHUB_TOKEN: ${{ github.token }} @@ -37,7 +40,8 @@ jobs: steps: - uses: actions/checkout@v3 - + with: + ref: ${{ inputs.target_branch}} - name: ccache uses: hendrikmuhs/ccache-action@v1.2 with: