diff --git a/.github/workflows/publish-dev-docker-image.yml b/.github/workflows/publish-dev-docker-image.yml index c3f44b0..998222a 100644 --- a/.github/workflows/publish-dev-docker-image.yml +++ b/.github/workflows/publish-dev-docker-image.yml @@ -26,39 +26,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Tag next version - id: tag-action - uses: K-Phoen/semver-release-action@master - with: - release_branch: main - release_strategy: tag - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Publish Release Draft - uses: actions/github-script@v6.4.1 - if: (steps.tag-action.outputs.tag != '') - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const tag = "${{ steps.tag-action.outputs.tag }}"; - const { data: releases } = await github.rest.repos.listReleases({ - owner: context.repo.owner, - repo: context.repo.repo - }); - const draftRelease = releases.find(release => release.tag_name === tag && release.draft === true); - if (!draftRelease) { - console.log(`No draft release found for tag ${tag}`); - return; - } - await github.rest.repos.updateRelease({ - owner: context.repo.owner, - repo: context.repo.repo, - release_id: draftRelease.id, - draft: false - }); - console.log(`Published draft release for tag ${tag}`); - - name: Setup Java uses: actions/setup-java@v3 with: