Skip to content

Commit

Permalink
Better paths that should work
Browse files Browse the repository at this point in the history
  • Loading branch information
diondokter committed Apr 8, 2024
1 parent 64eb96b commit 72afa87
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,26 +64,30 @@ jobs:
working-directory: ./example
run: cargo size --release -- -A > ../binsize_new.txt

- name: Rename binsize artifact
if: github.ref_name == 'master'
run: cp binsize_new.txt binsize_master.txt

- name: Store binsize artifact
if: github.ref_name == 'master'
uses: actions/upload-artifact@v4
with:
name: master-binsize
path: binsize_new.txt
path: binsize_master.txt
overwrite: true

- name: Retrieve master binsize artifact
if: github.ref_name != 'master'
uses: actions/download-artifact@v4
with:
name: master-binsize
path: binsize_old.txt
path: binsize_master.txt

- name: Run diff
if: github.ref_name != 'master'
uses: LouisBrunner/[email protected]
with:
old: binsize_old.txt
old: binsize_master.txt
new: binsize_new.txt
token: $GITHUB_TOKEN
notify_issue: true

0 comments on commit 72afa87

Please sign in to comment.