Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
Updates dripping
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkauzh committed Dec 20, 2023
1 parent d6120e5 commit 6f6d82c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/ci_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,28 @@ jobs:
python-version: "3.10"

- name: Update PIP
run: |
python -m pip install --upgrade pip
python -m pip install setuptools sdist wheel build
run: python -m pip install --upgrade pip

- name: Install packages
run: python -m pip install setuptools sdist wheel build

- name: Build module
run: python setup.py ci_check


install:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Update PIP
run: python -m pip install --upgrade pip

- name: Install module
run: python setup.py install

3 changes: 1 addition & 2 deletions discord/discord_req.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
fusion-engine
python-dotenv
discord_webhook
discord_webhook
5 changes: 3 additions & 2 deletions discord/send_webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def send_discord_webhook(message):
if webhook := os.environ.get("DISCORD_WEBHOOK"):
if webhook := os.environ.get("FUSION_WEBHOOK"):
DiscordWebhook(url=webhook, content=message).execute()
else:
print("Discord webhook URL not found in environment variables.")
Expand All @@ -13,7 +13,8 @@ def send_discord_webhook(message):
version = fusion.__version__
author = fusion.__author__

message = f"Fusion Engine {version} of package has been released to PyPI by {author}! Check it out at https://pypi.org/project/fusion-engine/{version}"
message1 = f"Fusion Engine {version} of package has been released to PyPI by {author}! Check it out at https://pypi.org/project/fusion-engine/{version}"
message = "test"

print("Sending webhook...")

Expand Down

0 comments on commit 6f6d82c

Please sign in to comment.