From f1cf61a0fb8a9bac94482d70d405319798d21470 Mon Sep 17 00:00:00 2001 From: joelazar Date: Wed, 20 Apr 2022 12:38:55 +0200 Subject: [PATCH] :rocket: fix rollbacks - do not create release without draft release on main branch --- .github/workflows/production_deploy.js.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/production_deploy.js.yml b/.github/workflows/production_deploy.js.yml index fa69c46..9e1835e 100644 --- a/.github/workflows/production_deploy.js.yml +++ b/.github/workflows/production_deploy.js.yml @@ -10,8 +10,14 @@ jobs: - name: Do some magic run: echo magic + - name: Get draft release + id: get_draft_release + uses: agners/get-draft-release@v0.1.0 + env: + GITHUB_TOKEN: ${{ github.token }} + - uses: release-drafter/release-drafter@v5 - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' && steps.get_draft_release.outputs.id }} with: config-name: release_drafter.yml disable-autolabeler: false