From 39a6c3d1c76d7614fda8b24b09d896f90bf02703 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 22 Apr 2024 03:12:29 -0400 Subject: [PATCH] update actions --- .github/workflows/copyright.yml | 13 ++++++------- .github/workflows/update-awards-clean.yml | 13 ++++++------- .github/workflows/update-awards.yml | 13 ++++++------- requirements.txt | 2 +- 4 files changed, 19 insertions(+), 22 deletions(-) diff --git a/.github/workflows/copyright.yml b/.github/workflows/copyright.yml index 326849b..4c18bd5 100644 --- a/.github/workflows/copyright.yml +++ b/.github/workflows/copyright.yml @@ -1,4 +1,4 @@ -name: Update-Copyright-Year +name: Update Copyright Year on: schedule: @@ -6,7 +6,7 @@ on: workflow_dispatch: jobs: - Update-Copyright-Year: + update: runs-on: ubuntu-latest steps: @@ -38,13 +38,12 @@ jobs: uses: Kometa-Team/discord-notifications@master if: failure() with: - webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }} - webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }} + webhook_id_token: ${{ secrets.BUILD_WEBHOOK }} message: <@&1079153184007790652> - title: "${{ secrets.REPO_NAME }}-Copyright: **Failure**" - color: 16106776 + title: "${{ secrets.REPO_NAME }}: **Copyright Update Failed**" url: https://github.com/Kometa-Team/${{ secrets.REPO_NAME }}/actions/runs/${{ github.run_id }} - username: Metabot + color: 14879811 + username: Kobota avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/logo.png author: GitHub author_icon_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/git.png \ No newline at end of file diff --git a/.github/workflows/update-awards-clean.yml b/.github/workflows/update-awards-clean.yml index 66f4469..4988698 100644 --- a/.github/workflows/update-awards-clean.yml +++ b/.github/workflows/update-awards-clean.yml @@ -45,16 +45,15 @@ jobs: git push origin master - name: Discord Failure Notification - uses: meisnate12/discord-notifications@master + uses: Kometa-Team/discord-notifications@master if: failure() with: - webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }} - webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }} + webhook_id_token: ${{ secrets.BUILD_WEBHOOK }} message: <@&1079153184007790652> - title: "${{ secrets.REPO_NAME }}-Clean: **Failure**" - color: 16106776 + title: "${{ secrets.REPO_NAME }}: **Run Failed**" url: https://github.com/Kometa-Team/${{ secrets.REPO_NAME }}/actions/runs/${{ github.run_id }} - username: Metabot - avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/pmm.png + color: 14879811 + username: Kobota + avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/logo.png author: GitHub author_icon_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/git.png diff --git a/.github/workflows/update-awards.yml b/.github/workflows/update-awards.yml index 7f83538..258d681 100644 --- a/.github/workflows/update-awards.yml +++ b/.github/workflows/update-awards.yml @@ -1,4 +1,4 @@ -name: Update-IMDb-Awards +name: Update IMDb Awards on: schedule: @@ -8,7 +8,7 @@ on: pull_request: jobs: - Update-IMDb-Awards: + update: runs-on: ubuntu-latest steps: @@ -50,13 +50,12 @@ jobs: uses: Kometa-Team/discord-notifications@master if: failure() with: - webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }} - webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }} + webhook_id_token: ${{ secrets.BUILD_WEBHOOK }} message: <@&1079153184007790652> - title: "${{ secrets.REPO_NAME }}: **Failure**" - color: 16106776 + title: "${{ secrets.REPO_NAME }}: **Run Failed**" url: https://github.com/Kometa-Team/${{ secrets.REPO_NAME }}/actions/runs/${{ github.run_id }} - username: Metabot + color: 14879811 + username: Kobota avatar_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/logo.png author: GitHub author_icon_url: https://raw.githubusercontent.com/Kometa-Team/Kometa/nightly/.github/git.png \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 7caf18d..6cb5bf3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ GitPython==3.1.43 lxml==5.2.1 -kometautils==0.3.1 +kometautils==0.3.4 requests==2.31.0 \ No newline at end of file