-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 1.19 KB
/
aviary_license_verifier.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
name: Update License Information
on:
push:
branches-ignore:
- dev
- main
paths:
- 'Gemfile'
- 'Gemfile.lock'
jobs:
update_license:
name: Generate License Information Report
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Checkout Project Directory
run: cd /home/runner/work/aviary-public/aviary-public
- name: Libs Installation
run: sudo apt-get install libcurl4 libcurl4-openssl-dev
- name: Pull Current Branch
run: git pull origin ${{ github.event.pull_request.head.ref }}
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.4
- name: Install license_finder gem
run: bundle install
- name: Run license_finder
run: license_finder report --format=html --save=license_info.html
- name: Add & Commit changes
uses: EndBug/[email protected]
with:
author_name: Nouman Tayyab
author_email: [email protected]
message: 'updated license information'
add: './license_info.html'