forked from analystsfd/newtest
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.15 KB
/
repo_lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
name: Run repolint
on:
workflow_dispatch: null
# schedule:
# - cron: '*/5 * * * *'
# - cron: '0 0 * * *'
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Setup node for repolinter
uses: actions/setup-node@v3
- name: Setup ruby for license checker
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
- name: Install dependencies
run: |
npm install -g repolinter
gem install licensee
- name: Checkout
uses: actions/checkout@v4
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
- name: Lint Allianz Incubator Repos
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: scripts/lint_repos.sh --org allianz-incubator
- name: Lint Allianz Repos
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: scripts/lint_repos.sh --org allianz --dry-run
- uses: actions/upload-artifact@v4
with:
name: reports
path: results