Skip to content

Commit

Permalink
CID-3008: remove tagging next version and publishing release draft
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedlajmileanix committed Nov 12, 2024
1 parent ac57e08 commit 2768ed8
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/publish-dev-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2768ed8

Please sign in to comment.