Skip to content

Commit

Permalink
Merge pull request #7 from joelazar/hotfix/fix-rollbacks-again
Browse files Browse the repository at this point in the history
🚀 fix rollbacks - do not create release without draft release …
  • Loading branch information
joelazar committed Apr 20, 2022
2 parents f802810 + f1cf61a commit 646dc21
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/production_deploy.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,20 @@ jobs:
- name: Do some magic
run: echo magic

- name: Get lastest draft release
id: get_latest_draft_release
run: |
echo "::set-output name=DRAFT_RELEASE::$(gh release list -L 1 -R $GITHUB_REPOSITORY | grep Draft)"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: echo ${{ steps.get_latest_draft_release.outputs.DRAFT_RELEASE }}
- run: echo ${{ env.GITHUB_REPOSITORY_OWNER }}
- run: echo $GITHUB_REPOSITORY
- run: env

- uses: release-drafter/release-drafter@v5
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' && steps.get_latest_draft_release.outputs.DRAFT_RELEASE }}
with:
config-name: release_drafter.yml
disable-autolabeler: false
Expand Down

0 comments on commit 646dc21

Please sign in to comment.