Skip to content

fix(ci): Use a different github action for autoformat #566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
13 changes: 9 additions & 4 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e #v4.3.0
Expand All @@ -21,13 +23,16 @@ jobs:
- name: Check that files have been formatted before PR submission
run: git diff-files --quiet --ignore-submodules
if: ${{ github.event.pull_request.head.repo.full_name != 'opentdf/web-sdk' }}
- name: Commit changes

- uses: planetscale/ghcommit-action@d4176bfacef926cc2db351eab20398dfc2f593b5
id: auto-commit
if: ${{ github.event.pull_request.head.repo.full_name == 'opentdf/web-sdk' }}
uses: stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 #v5.1.0
with:
commit_message: |-
🤖 🎨 Autoformat
commit_message: 🤖 🎨 Autoformat
repo: ${{ github.repository }}
branch: ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Suggest user signoff
if: steps.auto-commit.outputs.changes_detected == 'true'
Expand Down
Loading