From 81ef514459f0ae73c22766274e229902b58e85c1 Mon Sep 17 00:00:00 2001 From: Joe Kaufeld Date: Wed, 22 Mar 2023 22:27:33 -0400 Subject: [PATCH] try actions --- .github/workflows/build_and_release.yml | 6 +++--- src/cli.py | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index 9213717..88d64e7 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -11,8 +11,8 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v4 + - uses: https://github.com/actions/checkout@v2 + - uses: https://github.com/actions/setup-python@v4 with: python-version: '3.10.x' - name: Install Env @@ -27,7 +27,7 @@ jobs: run: | sed -i -e "s/?????/${{ env.CURRENT_TIME_VERSION }}/g" src/__init__.py make build - - uses: ncipollo/release-action@v1 + - uses: https://github.com/ncipollo/release-action@v1 with: artifacts: "utils" body: "It's releasin' time" diff --git a/src/cli.py b/src/cli.py index ac243ce..78d0d4b 100644 --- a/src/cli.py +++ b/src/cli.py @@ -93,13 +93,14 @@ def beautify(words: list[str]): @main.command() def update(): - """Get the newest release from GitHub and install it.""" + """Get the newest release from Gitea and install it.""" response = httpx.get( - "https://api.github.com/repos/itsthejoker/utils/releases/latest" + # "https://api.github.com/repos/itsthejoker/utils/releases/latest" + "https://git.joekaufeld.com/api/v1/repos/jkaufeld/utils/releases/latest" ) if response.status_code != 200: click.echo( - f"Something went wrong when talking to GitHub; got a" + f"Something went wrong when talking to Gitea; got a" f" {response.status_code} with the following content:\n" f"{response.content}" )