-
Notifications
You must be signed in to change notification settings - Fork 11
/
action.yml
38 lines (37 loc) · 1.11 KB
/
action.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
name: "Tidelift Alignment"
description: "Ensures all software being used is a part of your Tidelift catalog"
author: "Jeremy Katz"
branding:
icon: "alert-circle"
color: "orange"
runs:
using: "composite"
steps:
- name: "Download Tidelift CLI"
run: |
case "$(uname -s)" in
Linux)
curl -s -o ./tidelift https://download.tidelift.com/cli/tidelift
;;
Darwin)
curl -s -o ./tidelift https://download.tidelift.com/cli/tidelift_darwin
;;
*)
echo "Unable to detect OS. Please contact Tidelift support at [email protected]"
exit 1
;;
esac
chmod +x tidelift
shell: bash
- name: "Check CLI version"
run: ./tidelift version
shell: bash
- name: "Upload alignment"
run: ./tidelift alignment save --revision ${GITHUB_SHA} --branch ${GITHUB_REF##*/} --directory ${GITHUB_WORKSPACE}
shell: bash
- name: "Wait for results"
run: sleep 15
shell: bash
- name: "Check results"
run: ./tidelift status --wait ${GITHUB_SHA}
shell: bash