Skip to content

Update rust-analyzer version to 2023-12-11 #3

Update rust-analyzer version to 2023-12-11

Update rust-analyzer version to 2023-12-11 #3

Workflow file for this run

name: Check update RA settings
on:
pull_request:
branches:
- main
permissions:
pull-requests: write
repository-projects: write
jobs:
new_settings:
name: Check updated RA settings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get TAG from PR
id: tag-from
run: echo ::set-output name=TAG::$(rg -o 'TAG = "([^"]+)"' -r \$1 "plugin.py")
- uses: actions/checkout@v4
with:
ref: main
- name: Get TAG from main
id: tag-to
run: echo ::set-output name=TAG::$(rg -o 'TAG = "([^"]+)"' -r \$1 "plugin.py")
- name: Run new_settings.sh script
id: new_settings
run: echo ::set-output name=CHANGES::$(./scripts/new_settings.sh ${{ steps.tag-from.outputs.TAG }} ${{ steps.tag-to.outputs.TAG }})
- name: Find Comment
if: steps.new_settings.outputs.CHANGES != "No changes"

Check failure on line 37 in .github/workflows/schema.yml

View workflow run for this annotation

GitHub Actions / Check update RA settings

Invalid workflow file

The workflow is not valid. .github/workflows/schema.yml (Line: 37, Col: 13): Unexpected symbol: '"No'. Located at position 39 within expression: steps.new_settings.outputs.CHANGES != "No changes" .github/workflows/schema.yml (Line: 46, Col: 13): Unexpected symbol: '"No'. Located at position 39 within expression: steps.new_settings.outputs.CHANGES != "No changes"
uses: peter-evans/find-comment@v2
id: find-comment
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: Build output
- name: Create or update comment
if: steps.new_settings.outputs.CHANGES != "No changes"
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: |
Changes in https://github.com/rust-lang/rust-analyzer/blob/master/editors/code/package.json
<details>
<summary>New settings</summary>
```diff
${{ steps.new_settings.outputs.CHANGES }}
```
</details>
edit-mode: replace