|
14 | 14 | type: string |
15 | 15 | SMOKE_TEST_IMAGES: |
16 | 16 | type: string |
17 | | - checkout_ref: |
18 | | - type: string |
19 | | - default: '' |
20 | | - |
21 | 17 |
|
22 | 18 | jobs: |
23 | 19 | build-source-package: |
|
30 | 26 | - name: Checkout code |
31 | 27 | uses: actions/checkout@v4 |
32 | 28 | with: |
33 | | - ref: ${{ inputs.checkout_ref || '' }} |
| 29 | + ref: ${{ inputs.release_tag == 'unstable' && 'unstable' || '' }} |
34 | 30 | - name: Ensure Release Branch |
35 | 31 | if: inputs.release_tag != '' && inputs.release_tag != 'unstable' |
36 | 32 | id: ensure-branch |
|
43 | 39 | with: |
44 | 40 | dist: ${{ matrix.dist }} |
45 | 41 | release_tag: ${{ inputs.release_tag }} |
46 | | - checkout_ref: ${{ inputs.checkout_ref || '' }} |
| 42 | + checkout_ref: ${{ inputs.release_tag == 'unstable' && 'unstable' || '' }} |
47 | 43 |
|
48 | 44 | build-binary-package: |
49 | 45 | runs-on: ${{ contains(matrix.arch, 'arm') && 'ubuntu24-arm64-2-8' || 'ubuntu-24.04' }} |
|
58 | 54 | - name: Checkout code |
59 | 55 | uses: actions/checkout@v4 |
60 | 56 | with: |
61 | | - ref: ${{ inputs.checkout_ref || '' }} |
| 57 | + ref: ${{ inputs.release_tag == 'unstable' && 'unstable' || '' }} |
62 | 58 | - name: Ensure Release Branch |
63 | 59 | if: inputs.release_tag != '' && inputs.release_tag != 'unstable' |
64 | 60 | id: ensure-branch |
|
72 | 68 | dist: ${{ matrix.dist }} |
73 | 69 | arch: ${{ matrix.arch }} |
74 | 70 | run_id: ${{ github.run_id }} |
75 | | - checkout_ref: ${{ inputs.checkout_ref || '' }} |
| 71 | + checkout_ref: ${{ inputs.release_tag == 'unstable' && 'unstable' || '' }} |
76 | 72 |
|
77 | 73 | smoke-test-archs: |
78 | 74 | runs-on: ubuntu-latest |
@@ -103,10 +99,10 @@ jobs: |
103 | 99 | - name: Checkout code |
104 | 100 | uses: actions/checkout@v4 |
105 | 101 | with: |
106 | | - ref: ${{ inputs.checkout_ref || '' }} |
| 102 | + ref: ${{ inputs.release_tag == 'unstable' && 'unstable' || '' }} |
107 | 103 | - uses: ./.github/actions/run-smoke-tests |
108 | 104 | with: |
109 | 105 | image: ${{ matrix.image }} |
110 | 106 | arch: ${{ matrix.arch }} |
111 | 107 | run_id: ${{ github.run_id }} |
112 | | - checkout_ref: ${{ inputs.checkout_ref || '' }} |
| 108 | + checkout_ref: ${{ inputs.release_tag == 'unstable' && 'unstable' || '' }} |
0 commit comments