File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 14
14
if : github.repository_owner == 'Qiskit'
15
15
name : Build, rustfmt, and python lint
16
16
runs-on : ubuntu-latest
17
+ permissions :
18
+ pull-requests : write
17
19
steps :
18
20
- name : Print Concurrency Group
19
21
env :
43
45
- name : Check stray release notes
44
46
run : python tools/find_stray_release_notes.py
45
47
- name : Spell check
46
- run : typos --exclude releasenotes/ && typos --no-check-filenames releasenotes/
48
+ id : spell-check
49
+ run : |
50
+ status=0
51
+ echo '### :warning: Spell check failed' > spell-check-output
52
+ typos --exclude releasenotes/ --format brief >> spell-check-output || status=$?
53
+ typos --no-check-filenames releasenotes/ --format brief >> spell-check-output || status=$?
54
+ if [[ ${status} -ne 0 ]]; then
55
+ echo "failed=true" >> ${GITHUB_OUTPUT}
56
+ exit 0
57
+ fi
58
+ exit ${status}
59
+ - name : Spell check comment
60
+ uses : thollander/actions-comment-pull-request@v3
61
+ if : ${{ github.event_name == 'pull_request' }}
62
+ with :
63
+ comment-tag : spell-check-failed
64
+ file-path : spell-check-output
65
+ mode : ${{ steps.spell-check.outputs.failed == 'true' && 'upsert' || 'delete' }}
47
66
- name : rustworkx-core Rust Tests
48
67
run : pushd rustworkx-core && cargo test && popd
49
68
- name : rustworkx-core Docs
You can’t perform that action at this time.
0 commit comments