Skip to content

fix(deps): update dependency prettier to v3.4.2 #371

fix(deps): update dependency prettier to v3.4.2

fix(deps): update dependency prettier to v3.4.2 #371

Workflow file for this run

on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
get_latest_commit_author:
runs-on: ubuntu-latest
outputs:
latest-commit-author: ${{ steps.commit_author.outputs.author }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- id: commit_author
run: echo "name=author::$(git show -s --format=%an)" >> $GITHUB_OUTPUT
generator:
needs: get_latest_commit_author
if: needs.get_latest_commit_author.outputs.latest-commit-author != 'github-actions[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
token: ${{ secrets.PAT || github.token }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- uses: actions/setup-node@v4
with:
node-version: 18
- run: bin/generate_files
- run: git diff --exit-code
- if: failure() && github.event.pull_request.head.repo.full_name == 'mtsmfm/language_server-protocol-ruby'
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add lib
git commit -m "$ bin/generate_files"
git push origin HEAD:${{ github.head_ref }}