Skip to content

Commit

Permalink
Fix report branch name (#102)
Browse files Browse the repository at this point in the history
* Fix report branch name

Signed-off-by: Crola1702 <[email protected]>

* Fix report name reading

Signed-off-by: Crola1702 <[email protected]>

* Add env to report variable

Signed-off-by: Crola1702 <[email protected]>

* Show report name

Signed-off-by: Crola1702 <[email protected]>

* Run job if pull request to workflow file

Signed-off-by: Crola1702 <[email protected]>

* Apply PR comments

Signed-off-by: Crola1702 <[email protected]>

* Use double brackets

Signed-off-by: Crola1702 <[email protected]>

* Remove double brackets and test with one slash

Signed-off-by: Crola1702 <[email protected]>

* Remove quotes

Signed-off-by: Crola1702 <[email protected]>

* Revert everything to last working commit

Signed-off-by: Crola1702 <[email protected]>

---------

Signed-off-by: Crola1702 <[email protected]>
  • Loading branch information
Crola1702 authored Oct 18, 2024
1 parent 1264abd commit 0f84a43
Showing 1 changed file with 8 additions and 2 deletions.
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/\//_}"
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

0 comments on commit 0f84a43

Please sign in to comment.