Fix workflow paths

This commit is contained in:
Simon Lecoq
2021-08-17 19:07:09 +02:00
committed by GitHub
parent 635ca3a032
commit 9ba705cd12

View File

@@ -43,8 +43,9 @@ 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
/home/runner/.dprint/bin/dprint fmt --config .github/config/dprint.json cp /home/runner/.dprint/bin/dprint /usr/local/bin/dprint
npm install -g eslint npm install -g eslint
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') .
@@ -81,11 +82,14 @@ jobs:
- name: Setup Dprint - name: Setup 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 cp /home/runner/.dprint/bin/dprint /usr/local/bin/dprint
npm install -g eslint
- name: Checkout master - name: Checkout master
run: git checkout master run: git checkout master
- name: Format code - name: Format code
run: npm run fmt run: |
dprint fmt --config .github/config/dprint.json
npm run format
- name: Publish formatted code - name: Publish formatted code
run: | run: |
set +e set +e