From 3055fee0022f8af00d3c908697c627148bc991f7 Mon Sep 17 00:00:00 2001 From: Oleg Proskurin Date: Thu, 30 May 2024 00:17:39 +0700 Subject: [PATCH] Fix --- .github/workflows/new-repo.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/new-repo.yml b/.github/workflows/new-repo.yml index e3e306f..2a2a6bc 100644 --- a/.github/workflows/new-repo.yml +++ b/.github/workflows/new-repo.yml @@ -19,7 +19,11 @@ jobs: uses: actions/checkout@v3 - id: get_step run: | - echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT + if [ -f ./.github/script/STEP ]; then + echo "current_step=$(cat ./.github/script/STEP)" >> $GITHUB_OUTPUT + else + echo "current_step=0" >> $GITHUB_OUTPUT + fi outputs: current_step: ${{ steps.get_step.outputs.current_step }}