forked from ros/rosdistro
-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (42 loc) · 1.64 KB
/
report.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
51
52
53
name: run reports
on:
workflow_dispatch:
inputs:
ros_distro:
type: string
required: true
default: humble
description: "The ROS distro"
run-name: run reports on distribution
jobs:
report:
runs-on: ubuntu-latest
if: github.repository_owner == 'LCAS'
steps:
- uses: addnab/docker-run-action@v3
with:
username: lcas
password: lincoln
registry: lcas.lincoln.ac.uk
image: lcas.lincoln.ac.uk/lcas/docker-dpkg-build:master
options: -e ORGA_GH_TOKEN=${{ secrets.ORGA_GH_TOKEN }} -e ROS_DISTRO=${{ github.event.inputs.ros_distro}}
run: |
set -x
set -e
echo "https://oauth2:${{ secrets.ORGA_GH_TOKEN }}@github.com" > ~/.git-credentials
git config --global credential.helper store
git config --global user.name "L-CAS ROS Buildfarm"
git config --global user.email "[email protected]"
git clone --depth 1 https://github.com/LCAS/rosdistro
git clone --depth 1 https://github.com/LCAS/rosdistro.wiki
cd rosdistro.wiki
python3 ../rosdistro/scripts/rosdistro_analyser.py -t lcas -d $ROS_DISTRO > $ROS_DISTRO.md
# remove viewbox
cat repos-$ROS_DISTRO.svg | sed -s 's/viewBox="[^"]*" //' > /tmp/repos.svg
mv /tmp/repos.svg repos-$ROS_DISTRO.svg
python3 ../rosdistro/scripts/license_report.py --distro $ROS_DISTRO > license-report-$ROS_DISTRO.md
git add license-report-$ROS_DISTRO.md $ROS_DISTRO.md repos-$ROS_DISTRO.*
git status
git commit -a -m "report update"
git status
git push