From c2cd07ba30ac1c180a34f7617048fe939588abb6 Mon Sep 17 00:00:00 2001 From: Alexander Artemenko Date: Mon, 22 Feb 2021 13:02:37 +0300 Subject: [PATCH] Fixed error when there is no `qlfile` in the repository. --- ChangeLog.rst | 5 +++++ action.yml | 15 ++++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ChangeLog.rst b/ChangeLog.rst index 460f039..e37c280 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -2,6 +2,11 @@ ChangeLog =========== +1.0.1 (2021-02-22) +================== + +Fixed error when there is no ``qlfile`` in the repository. + 1.0.0 (2021-01-07) ================== diff --git a/action.yml b/action.yml index 3ef4ee1..c527506 100644 --- a/action.yml +++ b/action.yml @@ -60,11 +60,16 @@ runs: rm -f qlfile.lock fi - echo 'Here is content of qlfile:' - echo '===============' - cat qlfile - echo '===============' - echo '' + if [[ -e qlfile ]]; then + echo 'Here is content of qlfile:' + echo '===============' + cat qlfile + echo '===============' + echo '' + else + echo 'There is no qlfile. Creating an empty one.' + touch qlfile + fi qlot install echo ::endgroup::