fix: Improve if syntax

This commit is contained in:
peaceiris
2021-07-21 04:26:18 +09:00
parent 90e01d5ddd
commit f7a748bfc9
2 changed files with 14 additions and 14 deletions

View File

@@ -81,19 +81,19 @@ jobs:
run: npm run build
- name: Remove lint-staged husky
if: github.ref == 'refs/heads/main'
if: ${{ github.ref == 'refs/heads/main' }}
run: |
npm uninstall lint-staged husky
git checkout package-lock.json package.json
- name: Setup mdBook
if: github.ref == 'refs/heads/main'
if: ${{ github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-mdbook@v1.1.14
with:
mdbook-version: '0.4.5'
- name: Build site
if: github.ref == 'refs/heads/main'
if: ${{ github.ref == 'refs/heads/main' }}
working-directory: ./test_projects/mdbook
run: mdbook build