From 464fe122a87c10a9fedc857f5bc63ec15e13aebf Mon Sep 17 00:00:00 2001 From: altrisi Date: Mon, 19 Jun 2023 22:31:04 +0200 Subject: [PATCH] Revert 'Cancel release if version was already released' It... doesn't work now? And I don't have time to fix it --- .github/workflows/publish-release.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 8cc76897..4d151712 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -41,22 +41,6 @@ jobs: if ! ${{ steps.properties.outputs.release-extra-branch }}; then echo "matrix-to-exclude=Snapshots" >> $GITHUB_OUTPUT fi - - uses: actions/github-script@v6 - env: - READ_VERSION: ${{ steps.properties.outputs.mod_version }} - with: - script: | - const { READ_VERSION } = process.env; - console.log('Read version is: ' + READ_VERSION); - let releases = (await github.rest.repos.listReleases({ - owner: context.repo.owner, - repo: context.repo.repo - })).data; - console.log('Previous release was: ' + releases[1].name); - for (let release of releases.slice(1)) { - if (release.name.includes(READ_VERSION)) - core.setFailed('Version number is the same as a previous release!') - } Build-And-Publish: runs-on: ubuntu-latest needs: [Get-Properties]