From 759a20d3741b8605290fe73feef3099366f175d6 Mon Sep 17 00:00:00 2001 From: Max Golionko <8kirk8@gmail.com> Date: Fri, 7 Jul 2023 17:49:25 +0800 Subject: [PATCH] ci: fix sandbox update job (#4549) Prevent sandbox deploy job run if tag name is empty. --- .github/workflows/update-sandbox.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-sandbox.yml b/.github/workflows/update-sandbox.yml index 87f28ff49d..2bb8a038a8 100644 --- a/.github/workflows/update-sandbox.yml +++ b/.github/workflows/update-sandbox.yml @@ -8,11 +8,14 @@ jobs: deploy-sandbox: runs-on: ubuntu-latest steps: + - name: check inputs + if: github.event.release.tag_name == '' + run: exit 1 + - name: Check out code uses: actions/checkout@v3 with: repository: VictoriaMetrics/ops - ref: master token: ${{ secrets.VM_BOT_GH_TOKEN }} - name: Import GPG key @@ -74,4 +77,4 @@ jobs: Release [${{ github.event.release.tag_name }}](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/${{ github.event.release.tag_name }}) to sandbox > Auto-generated by `Github Actions Bot` - \ No newline at end of file +