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 }}