Skip to content

Commit 04cf0b9

Browse files
committed
ci(github): add contributors action
1 parent bc69f5c commit 04cf0b9

3 files changed

Lines changed: 32 additions & 15 deletions

File tree

.github/workflows/contributors.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
jobs:
7+
contrib-readme-job:
8+
runs-on: ubuntu-latest
9+
name: A job to automate contrib in readme
10+
steps:
11+
- name: Contribute List
12+
uses: akhilmhdh/contributors-readme-action@v2.3.4
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
name: lint
22
on:
3-
push:
4-
branches: [ main ]
5-
pull_request:
6-
branches: [ main ]
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
77
jobs:
8-
build:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
13-
with:
14-
node-version: '17'
15-
cache: 'npm'
16-
- run: npm install
17-
- run: npm run lint
18-
- run: npm run test-compile
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: '17'
15+
cache: 'npm'
16+
- run: npm install
17+
- run: npm run lint
18+
- run: npm run test-compile

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ the `SELECT`, `INSERT`, `INTO`, `DELETE`, `UPDATE`, `CREATE TABLE`.
1515
multiline strings that start with either <code>\`--sql</code> (backtick followed by `--sql`),
1616
`"--sql` or `"""--sql`.**
1717

18+
<!-- readme: contributors -start -->
19+
<!-- readme: contributors -end -->
20+
1821
## Safety
1922

2023
The proper way to sanitize data for insertion into your database is to

0 commit comments

Comments
 (0)