Skip to content

Commit dd57b1b

Browse files
committed
Report: Fixes branch value in github action
1 parent 4781c4d commit dd57b1b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/report.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
generate_report:
99
runs-on: ubuntu-latest
10+
env:
11+
STACK_VERSION: 8.16.4-SNAPSHOT
12+
BRANCH: '8.16' # Branch for downloading the specs
1013
steps:
1114
- uses: actions/checkout@v4
1215
with:
@@ -18,9 +21,6 @@ jobs:
1821
run: |
1922
cd report && bundle install
2023
echo "REPORT_DATE=`date "+%Y-%m-%d|%H:%M:%S"`" >> $GITHUB_ENV
21-
env:
22-
STACK_VERSION: 8.17.1-SNAPSHOT
23-
BRANCH: ${{ matrix.branch }} # Branch for downloading the specs
2424
- name: Download Artifacts
2525
run: cd report && bundle exec rake download_all
2626
- name: Generate report
@@ -30,14 +30,14 @@ jobs:
3030
id: cpr
3131
with:
3232
token: ${{ secrets.GITHUB_TOKEN }}
33-
commit-message: Updates API report ${{env.REPORT_DATE}} ${{ matrix.branch }}
34-
branch: update_report_${{ matrix.branch }}
35-
title: Updates API report ${{ matrix.branch }}
33+
commit-message: Updates API report ${{env.REPORT_DATE}} ${{ env.BRANCH }}
34+
branch: update_report_${{ env.BRANCH }}
35+
title: Updates API report ${{ env.BRANCH }}
3636
body: 'As titled'
37-
base: ${{ matrix.branch }}
37+
base: ${{ env.BRANCH }}
3838
committer: 'Elastic Machine <elasticmachine@users.noreply.github.com>'
3939
author: 'Elastic Machine <elasticmachine@users.noreply.github.com>'
4040
- name: Pull Request Summary
4141
if: ${{ steps.cpr.outputs.pull-request-url }}
4242
run: |
43-
echo "${{ matrix.branch }} - ${{ steps.cpr.outputs.pull-request-url }}" >> $GITHUB_STEP_SUMMARY
43+
echo "${{ env.BRANCH }} - ${{ steps.cpr.outputs.pull-request-url }}" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)