Fix dprint path in workflow

This commit is contained in:
Simon Lecoq
2021-08-17 18:52:02 +02:00
committed by GitHub
parent 7534c37ab8
commit 06363d3708

View File

@@ -43,8 +43,7 @@ jobs:
- name: Format code with dprint - name: Format code with dprint
run: | run: |
curl -fsSL https://dprint.dev/install.sh | sh curl -fsSL https://dprint.dev/install.sh | sh
echo "$HOME/.dprint/bin" >> $GITHUB_PATH /home/runner/.dprint/bin/dprint fmt --config .github/config/dprint.json
dprint fmt --config .github/config/dprint.json
npm run format npm run format
- name: Build lowlighter/metrics:${{ github.head_ref || 'master' }} - name: Build lowlighter/metrics:${{ github.head_ref || 'master' }}
run: docker build -t lowlighter/metrics:$(echo ${{ github.head_ref || 'master' }} | sed 's/\//-/g') . run: docker build -t lowlighter/metrics:$(echo ${{ github.head_ref || 'master' }} | sed 's/\//-/g') .