Skip to content

Commit ec8d0a9

Browse files
committed
ci: Reuse workflow for js
1 parent 70e7429 commit ec8d0a9

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

docs/javascript/index.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,6 @@ Create a ``.github/workflows/js.yml`` file. As a base, use:
164164
.. literalinclude:: samples/js.yml
165165
:language: yaml
166166

167-
Maintenance
168-
~~~~~~~~~~~
169-
170-
Find and compare ``js.yml`` files:
171-
172-
.. code-block:: bash
173-
174-
find . -name js.yml -exec bash -c 'echo $(tail -r {} | tail +2 | tail -r | shasum - | cut -d" " -f1) {}' \;
175-
176167
Reference
177168
---------
178169

docs/javascript/samples/js.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: Lint JavaScript
22
on: [push, pull_request]
33
jobs:
4-
build:
5-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
6-
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/checkout@v4
9-
- uses: biomejs/setup-biome@v2
10-
- run: biome ci --indent-style=space --line-width=119 path/to/file.js
4+
lint:
5+
uses: open-contracting/.github/.github/workflows/js.yml@main
6+
with:
7+
filenames: path/to/file.js

0 commit comments

Comments
 (0)