From 01196a3a32f431bd36dae52756db0b263b3f96ac Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Fri, 13 Jun 2025 17:48:56 -0400 Subject: [PATCH 1/3] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 145b61f..d549555 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,7 @@ jobs: with: files: community_bridge.zip env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_PAT }} # Use PAT instead of default GitHub token - name: Send webhook notification env: From bb5e0ecd2792fa859ae7ab83751b5f8a9ab03639 Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Fri, 13 Jun 2025 18:00:37 -0400 Subject: [PATCH 2/3] Update main.yml --- .github/workflows/main.yml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d549555..52cc4c5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,31 +12,20 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get install -y jq zip - - - name: Create release ZIP - run: | - zip -r community_bridge.zip . -x ".git/*" ".github/*" - - - name: Upload ZIP to release - uses: softprops/action-gh-release@v1 - with: - files: community_bridge.zip - env: - GITHUB_TOKEN: ${{ secrets.GH_PAT }} # Use PAT instead of default GitHub token + - name: Install jq + run: sudo apt-get update && sudo apt-get install -y jq - name: Send webhook notification env: WEBHOOK_URL: ${{ secrets.RELEASE_WEBHOOK_URL }} run: | + # Extract repository name and release details REPO_NAME=$(basename "$GITHUB_REPOSITORY") RELEASE_VERSION=$(jq -r '.release.tag_name // "Unknown Version"' "$GITHUB_EVENT_PATH") TITLE="$REPO_NAME $RELEASE_VERSION" DESCRIPTION=$(jq -r '.release.body // "No description provided."' "$GITHUB_EVENT_PATH") + # Construct JSON payload PAYLOAD=$(jq -n \ --arg title "$TITLE" \ --arg description "$DESCRIPTION" \ @@ -68,15 +57,17 @@ jobs: "type": 2, "style": 5, "label": "Get The Latest Community Bridge Release", - "url": "https://github.com/The-Order-Of-The-Sacred-Framework/community_bridge/releases/latest" + "url": "https://github.com/The-Order-Of-The-Sacred-Framework/community_bridge/tree/main" } ] } ] }') + # Debugging: Print the payload for verification echo "$PAYLOAD" + # Send webhook curl -X POST "$WEBHOOK_URL" \ -H "Content-Type: application/json" \ --data-raw "$PAYLOAD" || exit 1 From 3da14553bd2540018a2229b06d86c51d2db307df Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Fri, 13 Jun 2025 18:01:44 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index bc5ef8f..edc3634 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,6 @@
-![](https://img.shields.io/github/downloads/The-Order-Of-The-Sacred-Framework/community_bridge/total?logo=github) -![](https://img.shields.io/github/downloads/The-Order-Of-The-Sacred-Framework/community_bridge/latest/total?logo=github) ![](https://img.shields.io/github/contributors/The-Order-Of-The-Sacred-Framework/community_bridge?logo=github) ![](https://img.shields.io/github/v/release/The-Order-Of-The-Sacred-Framework/community_bridge?logo=github)