Skip to content

Commit e0fdd3c

Browse files
authored
chore(lsp): FixLSP workflow (#213)
1 parent 67a2bfc commit e0fdd3c

2 files changed

Lines changed: 11 additions & 19 deletions

File tree

.github/workflows/lsp.yaml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,11 @@ jobs:
2323
- name: GitHub Login
2424
if: ${{ github.event_name == 'push' }}
2525
run: |
26-
echo "${{ secrets.GH_TOKEN }}" > token.txt
27-
gh auth login --with-token < token.txt
28-
gh auth status
26+
echo "$GH_TOKEN" | gh auth login --with-token
27+
gh auth setup-git
2928
30-
- name: Clone LSP repo
31-
if: ${{ github.event_name != 'push' }}
32-
run: |
33-
git clone https://github.com/makim-org/makim-lsp.git
34-
35-
- name: Clone LSP repo
36-
if: ${{ github.event_name == 'push' }}
37-
run: |
38-
gh repo clone https://oauth2:${{ secrets.GH_TOKEN }}@github.com/makim-org/makim-lsp.git
29+
- name: Clone target repo
30+
run: git clone https://github.com/makim-org/makim-lsp.git
3931

4032
- name: Create a new branch
4133
run: |
@@ -49,13 +41,13 @@ jobs:
4941
cd makim-lsp
5042
5143
git add .
52-
git commit -m "chore(schema): sync from Makim"
44+
git commit -m "chore(schema): Sync schema.json from Makim"
5345
54-
CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
46+
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
5547
56-
git push origin ${CURRENT_BRANCH}
48+
git push origin "$CURRENT_BRANCH"
5749
gh pr create \
58-
--body "This PR was automatically generated by a GitHub Action to sync `schema.json` from the Makim repo." \
5950
--title "Sync schema.json from Makim" \
60-
--head "${CURRENT_BRANCH}" \
61-
--base "main"
51+
--body "Auto-generated by GitHub Actions" \
52+
--head "$CURRENT_BRANCH" \
53+
--base main

src/makim/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"title": "Makim Configuration Schema",
3+
"title": "Makim configuration schema",
44
"type": "object",
55
"required": ["groups"],
66
"properties": {

0 commit comments

Comments
 (0)