-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (38 loc) · 1.2 KB
/
test-buildkite-download.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: test-buildkite-download
on:
workflow_dispatch: ~
push:
paths:
- '.github/workflows/test-buildkite-download.yml'
- 'buildkite/download/**'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: buildkite-run
uses: ./buildkite/run
with:
pipeline: 'oblt-hello-world'
token: ${{ secrets.BUILDKITE_TOKEN }}
wait-for: true
- uses: ./buildkite/download
with:
artifact-path: "signed-artifacts/**"
build-number: ${{ steps.buildkite-run.outputs.number }}
pipeline: 'oblt-hello-world'
token: ${{ secrets.BUILDKITE_TOKEN }}
- name: Assert signed-artifacts/ exists
run: test -d signed-artifacts
- name: Assert signed-artifacts/ contains any files
run: test -n "$(ls signed-artifacts/**)"
- uses: ./buildkite/download
with:
artifact-path: "artifacts.zip"
build-number: ${{ steps.buildkite-run.outputs.number }}
pipeline: 'oblt-hello-world'
token: ${{ secrets.BUILDKITE_TOKEN }}
- name: Assert artifacts.zip exists
run: test -e artifacts.zip