Skip to content

Commit

Permalink
Merge pull request #470 from kosenda/fix/save-name
Browse files Browse the repository at this point in the history
[CI] change artifact name for saving screenshots
  • Loading branch information
kosenda authored Mar 10, 2024
2 parents a6c3b98 + cf33fae commit e68bb6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/SaveScreenshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ jobs:
- name: create screenshots
run: ./gradlew recordRoborazziProdDebug --stacktrace

- name: Save SAVE_NAME
run: echo "SAVE_NAME=$( echo screenshot-${{ github.head_ref }} | sed "s/\//-/g" )" >> $GITHUB_ENV

- name: Save screenshots
uses: actions/upload-artifact@v4
with:
name: base/${{ github.head_ref }}
name: ${{ env.SAVE_NAME }}
path: |
**/build/outputs/roborazzi/
retention-days: 30
5 changes: 4 additions & 1 deletion .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,14 @@ jobs:
with:
api-key: ${{ secrets.API_KEY }}

- name: Save DOWNLOAD_NAME
run: echo "DOWNLOAD_NAME=$( echo screenshot_${{ github.base_ref }} | sed "s/\//-/g" )" >> $GITHUB_ENV

- name: Download screenshots from base branch
continue-on-error: true
uses: actions/download-artifact@v4
with:
name: base/${{ github.base_ref }}
name: ${{ env.DOWNLOAD_NAME }}

- name: compare screenshots
run: ./gradlew compareRoborazziProdDebug --stacktrace
Expand Down

0 comments on commit e68bb6e

Please sign in to comment.