From 7a509013e3366960d4bd00e78ea65f8741acd844 Mon Sep 17 00:00:00 2001 From: Mayank Date: Wed, 1 Jan 2025 16:57:03 +0530 Subject: [PATCH] try random guess --- .github/workflows/docs.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 37126f93..ae82be4e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,7 +7,7 @@ on: jobs: generate-docs: - if: github.event.repository.owner.login == 'react18-tools' + if: github.event.repository.owner.login == 'react18-tools' && !git diff ${{ github.event.before }}:lib/package.json lib/package.json runs-on: ubuntu-latest permissions: contents: write @@ -16,19 +16,6 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} - - name: Check if package.json is modified - id: package_check - run: | - git pull - if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q "lib/package.json"; then - echo "file_changed=true" >> $GITHUB_ENV - else - echo "file_changed=false" >> $GITHUB_ENV - fi - - name: Exit if lib/package has changed - if: env.file_changed == 'false' - run: exit 1 - - uses: actions/setup-node@v4 with: registry-url: https://registry.npmjs.org