fix: Assertion verification key input #1247
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: '🤖 🎨' | |
on: | |
pull_request: | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'npm' | |
cache-dependency-path: './lib/package-lock.json' | |
- run: make format | |
- name: ignore package-lock changes | |
run: git restore "*/package-lock.json" | |
- name: ignore proto-generated file changes | |
run: git restore "lib/src/platform" | |
- run: git diff | |
- run: git diff-files --ignore-submodules | |
- 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 | |
id: auto-commit | |
if: ${{ github.event.pull_request.head.repo.full_name == 'opentdf/web-sdk' }} | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: |- | |
🤖 🎨 Autoformat | |
- name: Suggest user signoff | |
if: steps.auto-commit.outputs.changes_detected == 'true' | |
uses: actions/github-script@v7 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const body = `If these changes look good, signoff on them with: | |
\`\`\` | |
git pull && git commit --amend --signoff && git push --force-with-lease origin | |
\`\`\` | |
If they aren't any good, please remove them with: | |
\`\`\` | |
git pull && git reset --hard HEAD~1 && git push --force-with-lease origin | |
\`\`\` | |
`; | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body, | |
}); |