Skip to content

Commit

Permalink
ci: don't use graphql to commit
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed May 21, 2024
1 parent 5e1a679 commit 83c66be
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PUSH_TOKEN }}

- name: Set Git user info
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Get short revision
id: rev
Expand All @@ -41,13 +48,11 @@ jobs:
'nixpkgs#nixfmt-rfc-style' -- .
- name: Commit changes
env:
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
uses: planetscale/[email protected]
with:
commit_message: "style: format ${{ steps.rev.outputs.rev }}"
repo: "${{ github.repository }}"
branch: "${{ github.head_ref || github.ref_name }}"
run: |
if ! git diff --color=always --exit-code; then
git commit -am "style: format ${{ steps.rev.outputs.rev }}"
git push
fi
validate-sources:
name: Validate sources
Expand Down

0 comments on commit 83c66be

Please sign in to comment.