Skip to content

Commit

Permalink
Revert 'Cancel release if version was already released'
Browse files Browse the repository at this point in the history
It... doesn't work now? And I don't have time to fix it
  • Loading branch information
altrisi authored Jun 19, 2023
1 parent d1cc4b0 commit 464fe12
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 464fe12

Please sign in to comment.