Skip to content

Commit

Permalink
Fix update_lexicons workflow 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Nov 14, 2024
1 parent 47853a0 commit ef248cc
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/update_lexicons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,19 @@ jobs:
- name: Update lexicons and regen.
run: |
source $(poetry env info -p)/bin/activate
echo "COMMIT_MESSAGE=$(python update_lexicons.py)" >> $GITHUB_ENV
- name: Create Pull Request.
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.PAT }}
committer: Ilya (Marshal) <[email protected]>
author: Ilya (Marshal) <[email protected]>
commit-message: ${{ env.COMMIT_MESSAGE }}
body: This PR was automatically generated
base: main
branch: update-lexicons
title: ${{ env.COMMIT_MESSAGE }}
assignees: MarshalX
COMMIT_MESSAGE=$(python update_lexicons.py | tr -d '\n')
echo "Debug: Commit message is '$COMMIT_MESSAGE'"
echo "COMMIT_MESSAGE=$COMMIT_MESSAGE" >> $GITHUB_ENV
# - name: Create Pull Request.
# uses: peter-evans/create-pull-request@v5
# with:
# token: ${{ secrets.PAT }}
# committer: Ilya (Marshal) <[email protected]>
# author: Ilya (Marshal) <[email protected]>
# commit-message: ${{ env.COMMIT_MESSAGE }}
# body: This PR was automatically generated
# base: main
# branch: update-lexicons
# title: ${{ env.COMMIT_MESSAGE }}
# assignees: MarshalX

0 comments on commit ef248cc

Please sign in to comment.