Skip to content
This repository was archived by the owner on Apr 30, 2023. It is now read-only.

Commit ad811e6

Browse files
authored
Merge pull request #340 from mareklibra/ocm-deployed-version.sh
ocm-deployed-version.sh: print facet-lib version in OCM staging
2 parents 3a8b4a3 + 1c6e356 commit ad811e6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: hacks/ocm-deployed-version.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Prints facet-lib version currently deployed in OCM staging
5+
6+
export YARN_LOCK=${YARN_LOCK:-https://gitlab.cee.redhat.com/service/uhc-portal/-/raw/master/yarn.lock}
7+
8+
curl --silent ${YARN_LOCK} | awk '/^facet-lib@/{getline; print}' - | sed -e 's/^.*"\(.*\)"/\1/'
9+

0 commit comments

Comments
 (0)