Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix report branch name #102

Merged
merged 11 commits into from
Oct 18, 2024
10 changes: 8 additions & 2 deletions .github/workflows/daily-workflow-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,19 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: Set report name
run: |
BRANCH=${{ github.head_ref }}
REPORT_NAME="${BRANCH/\//_}"
Crola1702 marked this conversation as resolved.
Show resolved Hide resolved
echo "REPORT_NAME is: $REPORT_NAME"
echo "REPORT_NAME=$REPORT_NAME" >> $GITHUB_ENV
- name: Generate today's report
run: |
cd database/scripts
./generate_report.rb -o ci_report.json
- uses: actions/upload-artifact@v4
with:
name: "${{ github.ref_name }}-report"
name: "${{ env.REPORT_NAME }}-report"
path: database/scripts/ci_report.json
retention-days: 5 # Don't keep the artifact for much longer
overwrite: true # Use the same artifact name each time to save space
Expand All @@ -39,6 +45,6 @@ jobs:
- uses: actions/upload-artifact@v4
with:
path: database/scripts/formatted_report.md
name: "${{ github.ref_name }}-formatted-report"
name: "${{ env.REPORT_NAME }}-formatted-report"
retention-days: 5
overwrite: true
Loading