Skip to content

Commit

Permalink
ci: create a PR instead
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw authored Aug 17, 2024
1 parent b042bde commit f9c4a06
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/formatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
permissions:
contents: write

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: formatting

jobs:
format:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -55,4 +59,11 @@ jobs:
run: |
git add .
git commit -m "style: format scripts" || true
git push
git checkout -b $BRANCH_NAME
git push origin $BRANCH_NAME
- name: Authenticate with GitHub CLI
run: gh auth login --with-token <<< $GITHUB_TOKEN

- name: Create Pull Request
run: gh pr create --fill --base main --head $BRANCH_NAME || true

0 comments on commit f9c4a06

Please sign in to comment.