Skip to content

Commit e753b32

Browse files
committed
ci: add debian canaries
Signed-off-by: Arjun Raja Yogidas <[email protected]>
1 parent 63fe81d commit e753b32

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/canary-deb.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Deb Canary
2+
3+
on:
4+
# This workflow will run from the release-automation.yaml automation on each merge
5+
workflow_dispatch:
6+
inputs:
7+
ref_name:
8+
required: true
9+
type: string
10+
workflow_call:
11+
inputs:
12+
ref_name:
13+
required: true
14+
type: string
15+
16+
# This workflow will run every 5 min
17+
schedule:
18+
- cron: '*/5 * * * *'
19+
20+
jobs:
21+
canary-deb:
22+
# define all different arch's our supported CodeBuild fleets can run on
23+
runs-on: ubuntu-latest
24+
timeout-minutes: 3
25+
steps:
26+
- name: Clean ubuntu runner workspace
27+
run: |
28+
rm -rf ${{ github.workspace }}/*
29+
- name: Install Finch with APT
30+
run: |
31+
sudo apt install runfinch-finch -y
32+
- name: Verify version
33+
run: |
34+
version=$(finch -v)
35+
if [[ $version == "finch version ${{inputs.ref_name}}" ]]; then
36+
echo "Version matches: $version"
37+
else
38+
echo "Version mismatch. Found: $version, Expected: ${{inputs.ref_name}}"
39+
exit 1
40+
fi
41+
- name: Clean up environment
42+
run: |
43+
sudo apt remove runfinch-finch -y

0 commit comments

Comments
 (0)