From 3ccca31425c31a93aabcbe7b1e7f2f0089687508 Mon Sep 17 00:00:00 2001 From: staFF6773 <108166164+staFF6773@users.noreply.github.com> Date: Sun, 15 Sep 2024 19:02:03 -0600 Subject: [PATCH] Delete .github/workflows/tag-release.yml --- .github/workflows/tag-release.yml | 46 ------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 .github/workflows/tag-release.yml diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml deleted file mode 100644 index e511b29..0000000 --- a/.github/workflows/tag-release.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Tag Release - -on: - push: - tags: - - '*' - -jobs: - send-discord-webhook: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Send Discord Embed Webhook - env: - DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} - GITHUB_TAG: ${{ github.ref }} - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_SHA: ${{ github.sha }} - run: | - sudo apt-get install -y jq - TAG_NAME=$(echo $GITHUB_TAG | sed 's/refs\/tags\///') - TAG_URL="https://github.com/$GITHUB_REPOSITORY/releases/tag/$TAG_NAME" - SPIGOT_URL="https://www.spigotmc.org/resources/betterpvp.116272/" - DESCRIPTION=$(git for-each-ref refs/tags/$TAG_NAME --format='%(contents)') - PAYLOAD=$(jq -n --arg title "$TAG_NAME" --arg description "$DESCRIPTION\n\n[View Release]($TAG_URL) | [Spigot]($SPIGOT_URL)" '{ - "embeds": [ - { - "title": $title, - "description": $description, - "color": 3447003 - } - ] - }') - curl -X POST -H "Content-Type: application/json" -d "$PAYLOAD" $DISCORD_WEBHOOK_URL - - - name: Send Discord @everyone Message - env: - DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} - run: | - PAYLOAD=$(jq -n --arg content "@everyone New version!" '{ - "content": $content - }') - curl -X POST -H "Content-Type: application/json" -d "$PAYLOAD" $DISCORD_WEBHOOK_URL