chore(deps): bump pyright from 1.1.343 to 1.1.344 in /language-server #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update schema in Dependabot PR | |
on: | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'language-server/package.json' | |
permissions: | |
pull-requests: write | |
repository-projects: write | |
jobs: | |
update_schema: | |
name: Run schema update | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Update schema | |
id: update-schema | |
run: echo "OUTPUT=$(make update-schema)" >> "$GITHUB_OUTPUT" | |
- name: Check for modified files | |
id: git-check | |
run: echo "GIT_MODIFIED=$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi)" >> "$GITHUB_OUTPUT" | |
- name: Update changes in the PR | |
if: steps.git-check.outputs.GIT_MODIFIED == 'true' | |
run: | | |
git config --global user.name 'workflow' | |
git config --global user.email '[email protected]' | |
git add -A | |
git commit -m '[automated commit] update schema' | |
git push | |
- name: Find Comment | |
uses: peter-evans/find-comment@v2 | |
id: find-comment | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
comment-author: 'github-actions[bot]' | |
- name: Create or update comment | |
uses: peter-evans/create-or-update-comment@v3 | |
with: | |
comment-id: ${{ steps.find-comment.outputs.comment-id }} | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
schema-update output: | |
${{ steps.update-schema.outputs.OUTPUT }} | |
edit-mode: replace |