-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathaction.yaml
More file actions
39 lines (33 loc) · 1.09 KB
/
action.yaml
File metadata and controls
39 lines (33 loc) · 1.09 KB
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
name: Lint Workflows
description: Lint Workflows
inputs:
config-file-path:
description: File describing lint configuration.
required: false
default: "./.workflows-lint.yaml"
runs:
using: composite
steps:
- name: Checkout Source
uses: actions/checkout@v6
- name: Install argo CLI
shell: bash
run: |
curl -sLO "https://github.com/argoproj/argo-workflows/releases/download/v3.7.0-rc2/argo-linux-amd64.gz"
gunzip "argo-linux-amd64.gz"
chmod +x "argo-linux-amd64"
mv "./argo-linux-amd64" /usr/local/bin/argo
- name: Install helm
shell: bash
run: |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: Install Workflows CLI
shell: bash
run: |
curl -OL https://github.com/DiamondLightSource/workflows/releases/download/workflows-cli%40v0.1.0/workflows-cli.zip
unzip workflows-cli.zip
mv workflows /usr/local/bin/workflows
- name: Lint Workflows
shell: bash
run: |
workflows lint-config ${{ inputs.config-file-path }}