Skip to content

Commit

Permalink
ci: use output instead of env
Browse files Browse the repository at this point in the history
Co-authored-by: Piotr Galar <[email protected]>
  • Loading branch information
laurentsenta and galargh committed Jul 27, 2023
1 parent 49fde93 commit c8a6a38
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/update-badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ jobs:
env:
GITHUB_JOB_SUMMARY_URL: ${{ steps.metadata.outputs.job_summary_url }}
REPOSITORY: ${{ github.repository }}
- run: |
- id: git
run: |
if [[ -n $(git diff --shortstat 2> /dev/null | tail -n1) ]]; then
echo "GIT_DIRTY=1" >> $GITHUB_ENV
echo "dirty=1" >> $GITHUB_OUTPUT
else
echo "GIT_DIRTY=0" >> $GITHUB_ENV
echo "dirty=0" >> $GITHUB_OUTPUT
fi
- if: env.GIT_DIRTY == '1'
- if: steps.git.outputs.dirty == '1'
run: |
git add README.md
git commit -m 'chore: update the link to the dashboard [skip ci]'
Expand Down

0 comments on commit c8a6a38

Please sign in to comment.