-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (37 loc) · 1.16 KB
/
use-action-setup-catalog-cd.yaml
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
48
49
name: use setup-catalog-cd action
on:
push:
branches:
- 'main'
jobs:
use-action:
name: Use Action
strategy:
matrix:
platform:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.21'
check-latest: 'true'
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
# Minimal publish
- uses: openshift-pipelines/catalog-cd/actions/setup-catalog-cd@main
- run: catalog-cd version
- name: Install v0.1.2 release
uses: openshift-pipelines/catalog-cd/actions/setup-catalog-cd@main
with:
version: v0.1.2
- name: Check installed version
run: catalog-cd version | grep 0.1.2
- name: Install from tip
uses: openshift-pipelines/catalog-cd/actions/setup-catalog-cd@main
with:
version: tip
- name: Check installed version (tip)
run: |
sudo rm /usr/local/bin/catalog-cd # Uninstall previous versions.
catalog-cd version