Skip to content

Commit 6ddf4f0

Browse files
authored
Merge pull request #48 from redis/fix_unstable_workflow_syntax
Fix workflow syntax
2 parents 24baecd + 98ddd9a commit 6ddf4f0

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

.github/actions/build-binary-package/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ runs:
1818
using: "composite"
1919
steps:
2020
- uses: actions/checkout@v4
21-
ref: ${{ inputs.checkout_ref || '' }}
21+
with:
22+
ref: ${{ inputs.checkout_ref || '' }}
2223
- name: Determine build architecture
2324
shell: bash
2425
run: |

.github/actions/build-source-package/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ inputs:
77
release_tag:
88
description: "Release tag to build for (value 'unstable' is supported)"
99
required: false
10+
checkout_ref:
11+
description: "Ref to checkout"
12+
required: false
13+
default: ''
1014

1115
runs:
1216
using: "composite"
1317
steps:
1418
- uses: actions/checkout@v4
19+
with:
20+
ref: ${{ inputs.checkout_ref || '' }}
1521
- name: Install dependencies
1622
shell: bash
1723
run: |

.github/actions/run-smoke-tests/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ inputs:
99
arch:
1010
description: "Architecture to run smoke tests for"
1111
required: true
12+
checkout_ref:
13+
description: "Ref to checkout"
14+
required: false
15+
default: ''
1216

1317
runs:
1418
using: "composite"
1519
steps:
1620
- uses: actions/checkout@v4
21+
with:
22+
ref: ${{ inputs.checkout_ref || '' }}
1723
- name: Extract distribution from image
1824
id: extract_dist
1925
shell: bash

.github/workflows/build-n-test-all-distros.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
steps:
3030
- name: Checkout code
3131
uses: actions/checkout@v4
32-
ref: ${{ inputs.checkout_ref || '' }}
32+
with:
33+
ref: ${{ inputs.checkout_ref || '' }}
3334
- name: Ensure Release Branch
3435
if: inputs.release_tag != '' && inputs.release_tag != 'unstable'
3536
id: ensure-branch
@@ -55,8 +56,9 @@ jobs:
5556
needs: build-source-package
5657
steps:
5758
- name: Checkout code
58-
ref: ${{ inputs.checkout_ref || '' }}
5959
uses: actions/checkout@v4
60+
with:
61+
ref: ${{ inputs.checkout_ref || '' }}
6062
- name: Ensure Release Branch
6163
if: inputs.release_tag != '' && inputs.release_tag != 'unstable'
6264
id: ensure-branch
@@ -100,7 +102,8 @@ jobs:
100102
steps:
101103
- name: Checkout code
102104
uses: actions/checkout@v4
103-
ref: ${{ inputs.checkout_ref || '' }}
105+
with:
106+
ref: ${{ inputs.checkout_ref || '' }}
104107
- uses: ./.github/actions/run-smoke-tests
105108
with:
106109
image: ${{ matrix.image }}

0 commit comments

Comments
 (0)