diff --git a/.github/workflows/commands.yml b/.github/workflows/commands.yml index 386f8d321b..d78f11166c 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 }}