Skip to content

Commit f02ee65

Browse files
committed
ci: Reuse workflow for lint
1 parent 27afc22 commit f02ee65

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
name: Lint
22
on: [push, pull_request]
3-
env:
4-
BASEDIR: https://raw.githubusercontent.com/open-contracting/standard-maintenance-scripts/main
53
jobs:
6-
build:
7-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v4
11-
- uses: actions/setup-python@v5
12-
with:
13-
python-version: '3.10'
14-
- uses: actions/cache@v4
15-
with:
16-
path: ~/.cache/pip
17-
key: ${{ runner.os }}-pip
18-
- shell: bash
19-
run: curl -s -S --retry 3 $BASEDIR/tests/install.sh | bash -
20-
- shell: bash
21-
run: curl -s -S --retry 3 $BASEDIR/tests/script.sh | bash -
4+
lint:
5+
uses: open-contracting/.github/.github/workflows/lint.yml@main
6+
with:
7+
python-version: '3.10'

0 commit comments

Comments
 (0)