@@ -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
0 commit comments