Skip to content

Commit

Permalink
Move cat inside a variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymclean committed Jul 10, 2024
1 parent ce818a5 commit 1c86e38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs = (b.jobs) {
id = "version"
run = """
regex="\\"version\\": \\"(.+)\\","
if [[ (cat ./type-generator/lemmy-js-client/package.json) =~ $regex ]]
contents="$(cat ./type-generator/lemmy-js-client/package.json)"
if [[ contents =~ $regex ]]
then
echo ${BASH_REMATCH[1]}
lemmyVersion=${BASH_REMATCH[1]} >> $GITHUB_ENV
Expand Down

0 comments on commit 1c86e38

Please sign in to comment.