Skip to content

Commit

Permalink
chore: ci: fix PACKAGE_VERSION env var
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Feb 22, 2023
1 parent 83b7791 commit 1ae6714
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ jobs:
id: deployment
uses: actions/deploy-pages@v1

- run: 'echo "COVERAGE_CHANGED=$(cat package.json | grep version | head -1 | awk -F: ''{ print $2 }'' | sed ''s/[",]//g'')" >> $GITHUB_ENV'
- name: Update Coverage Badge
env:
PACKAGE_VERSION: 'cat package.json | grep version | head -1 | awk -F: ''{ print $2 }'' | sed ''s/[",]//g'''
run: cp ./docs/generated/v$PACKAGE_VERSION/coverage.svg ./docs/coverage.svg

- run: echo "COVERAGE_CHANGED=$(git status --porcelain -u | grep -c docs/coverage.svg)" >> $GITHUB_ENV
Expand Down

0 comments on commit 1ae6714

Please sign in to comment.