Skip to content

Commit 04c3e81

Browse files
committed
Adds GitHub Action to generate report
1 parent 7ee6e1a commit 04c3e81

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/report.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: report
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
jobs:
11+
generate_report:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
persist-credentials: false
17+
- uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: 3.3
20+
env:
21+
STACK_VERSION: 8.13.0-SNAPSHOT
22+
- name: Build
23+
run: |
24+
cd report && bundle install
25+
- name: Download Artifacts
26+
run: cd report && bundle exec rake download
27+
- name: Generate report
28+
run: cd report && bundle exec rake report
29+
- uses: gr2m/create-or-update-pull-request-action@v1
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
commit-message: "Updates report `date '+%Y-%m-%d|%H:%M:%S'`"

report/Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
source 'https://rubygems.org'
22

3+
gem 'rake'
4+
35
group :development, :test do
46
gem 'debug'
57
end

0 commit comments

Comments
 (0)