generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (43 loc) · 1.07 KB
/
licensed-ci.yaml
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
48
49
50
name: Verify cached license metadata
on:
# run on pushes to main
push:
branches:
- main
# run on all pull request events
pull_request:
types:
- opened
- reopened
- synchronize
# run on demand
workflow_dispatch:
jobs:
licensed:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
# setup action requirements
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc
with:
ruby-version: ruby
# install and run this action
- run: npm install --production --ignore-scripts
- name: Run setup-licensed
uses: ./
with:
version: '4.x'
github_token: ${{ secrets.GITHUB_TOKEN }}
# run licensed-ci to check and update licenses
- uses: github/licensed-ci@v1
with:
workflow: push_for_bots
dependabot_skip: 'true'
github_token: ${{ secrets.GITHUB_TOKEN }}
cleanup_on_success: 'true'