From de42d98585a0f8c9d3d900d51189c3f69fc844da Mon Sep 17 00:00:00 2001 From: Edgar Khanzadian Date: Sun, 22 Sep 2024 20:19:49 +0300 Subject: [PATCH] ci: retry --- .github/actions/eas-deploy/action.yml | 15 ++++++++------- .github/workflows/eas-deploy.yml | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/actions/eas-deploy/action.yml b/.github/actions/eas-deploy/action.yml index 7e95403a..24e8c0d2 100644 --- a/.github/actions/eas-deploy/action.yml +++ b/.github/actions/eas-deploy/action.yml @@ -86,13 +86,14 @@ runs: github-token: ${{ inputs.LEATHER_BOT }} script: | const { BUILD_LINK } = process.env - console.log({ BUILD_LINK }) - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: "Expo simulator build link: " + BUILD_LINK - }) + if(BUILD_LINK) { + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: "Expo simulator build link: " + BUILD_LINK + }) + } - name: 🛫 Build for production 🛫 if: ${{ steps.extract_branch.outputs.branch == 'dev' }} diff --git a/.github/workflows/eas-deploy.yml b/.github/workflows/eas-deploy.yml index 3856895d..208a5845 100644 --- a/.github/workflows/eas-deploy.yml +++ b/.github/workflows/eas-deploy.yml @@ -6,7 +6,7 @@ # branches: # - '**' -on: [pull_request, workflow_dispatch] +on: [pull_request] permissions: contents: write