Browse Source

Adds rename command to commands.yml (#11178)

felix920506 1 year ago
parent
commit
f5af38b8a4
1 changed files with 25 additions and 0 deletions
  1. 25 0
      .github/workflows/commands.yml

+ 25 - 0
.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 }}