diff --git a/github/example.gif b/.github/pictures/example.gif similarity index 100% rename from github/example.gif rename to .github/pictures/example.gif diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bed5987..c1b5454 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,6 +7,7 @@ on: permissions: contents: write + actions: write jobs: build: @@ -69,15 +70,15 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | if gh release view "v${VERSION}" > /dev/null 2>&1; then - echo "exists=true" >> $GITHUB_OUTPUT - echo "Release v${VERSION} already exists." + echo "::error::Release v${VERSION} already exists! Workflow cancelled. Please adjust the version." + gh run cancel ${{ github.run_id }} + sleep 10 + exit 1 else - echo "exists=false" >> $GITHUB_OUTPUT - echo "Release v${VERSION} does not exist yet." + echo "Release v${VERSION} existiert noch nicht. Fahre fort..." fi - name: Create GitHub Release - if: steps.check_release.outputs.exists == 'false' uses: softprops/action-gh-release@v2 with: name: Release v${{ env.VERSION }} diff --git a/README.md b/README.md index 88204ff..551c75c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # OneWayElytra Do you want to glied from your spawn into the unknown? Even without ever entering the end? This plugin adds a one-way-elytra for your spawn. Players are able to fly into the air and boost once they are in the air. - + ## Features - 🪽 fly into the air without an elytra