From 5290b23733de8cfdf15a1f5e13ccb72e306d5ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Kochen?= Date: Tue, 25 Jan 2022 20:42:34 +0100 Subject: [PATCH] Fix CI --- .github/workflows/build.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1dbc7c6..d6ef24a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,11 +38,12 @@ jobs: - name: Update dist if: github.repository_owner == 'stephank' && github.ref == 'refs/heads/main' run: | - [[ "$(git status --porcelain)" != "" ]] || exit - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config user.name "github-actions[bot]" - git commit -m 'Update dist' dist/yarn-plugin-nixify.js - git push + if [[ "$(git status --porcelain)" != "" ]]; then + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config user.name "github-actions[bot]" + git commit -m 'Update dist' dist/yarn-plugin-nixify.js + git push + fi - name: Install plugin run: yarn plugin import ./dist/yarn-plugin-nixify.js