aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfelix920506 <felix920506@gmail.com>2024-03-26 15:12:06 -0400
committerGitHub <noreply@github.com>2024-03-26 13:12:06 -0600
commitf5af38b8a4a24089c1de17e89f8e392ecea63856 (patch)
tree3e489122e93f9c3e8a2fb2da76c0a766f491d8d7
parente2e366f6d03e55c04e2bcce7235f26c956ff5232 (diff)
Adds rename command to commands.yml (#11178)
-rw-r--r--.github/workflows/commands.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/commands.yml b/.github/workflows/commands.yml
index 386f8d321..d78f11166 100644
--- a/.github/workflows/commands.yml
+++ b/.github/workflows/commands.yml
@@ -121,3 +121,28 @@ jobs:
${{ steps.run_tests.outputs.output }}
reactions: confused
+
+ rename:
+ name: Rename
+ if: contains(github.event.comment.body, '@jellyfin-bot rename') && github.event.comment.author_association == 'MEMBER'
+ runs-on: ubuntu-latest
+ steps:
+ - name: pull in script
+ uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
+ with:
+ repository: jellyfin/jellyfin-triage-script
+ - name: install python
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
+ with:
+ python-version: '3.12'
+ cache: 'pip'
+ - name: install python packages
+ run: pip install -r rename/requirements.txt
+ - name: run rename script
+ run: python3 rename.py
+ working-directory: ./rename
+ env:
+ GH_TOKEN: ${{ secrets.JF_BOT_TOKEN }}
+ GH_REPO: ${{ github.repository }}
+ ISSUE: ${{ github.event.issue.number }}
+ COMMENT_ID: ${{ github.event.comment.id }}