grafana / shared-workflows

A public-facing, centralized place to store reusable workflows used by Grafana Labs.
GNU Affero General Public License v3.0
8 stars 14 forks source link

fix(setup-argo): use bash, fix idempotency, only restore if needed #221

Closed Duologic closed 2 months ago

Duologic commented 2 months ago

Should fix:

# OS=$(echo "$OS" | tr '[:upper:]' '[:lower:]')
/home/runner/work/_temp/69566fd1-c0c9-4966-824c-63cf829358cd.sh: 2: [[: not found

and

gzip: /home/runner/work/incident/incident/bin/argo already exists;  not overwritten

Adds a testsuite to ensure that the cache is used when it should be, and that the argo binary is set up properly on the PATH and can be run.