From 9aed0666c1fff71b898d40226256fb815e28ce6a Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Mon, 16 Oct 2023 15:31:39 +0100 Subject: [PATCH] [CI] Fix snapshots workflow (#195) --- .github/workflows/smoke-checks.yml | 2 +- fastlane/Fastfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/smoke-checks.yml b/.github/workflows/smoke-checks.yml index 475c9b157..59fe3adfa 100644 --- a/.github/workflows/smoke-checks.yml +++ b/.github/workflows/smoke-checks.yml @@ -126,7 +126,7 @@ jobs: needs: build-test-app-and-frameworks if: ${{ github.event_name != 'push' }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.CI_BOT_GITHUB_TOKEN }} # to open a PR GITHUB_PR_NUM: ${{ github.event.number }} steps: - uses: actions/checkout@v3.1.0 diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 46ff312ec..3a9b80858 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -231,8 +231,8 @@ private_lane :test_ui do |options| sh("git commit -m '#{title}'") push_to_git_remote(tags: false) create_pull_request( - api_token: params[:github_token], - repo: params[:github_repo], + api_token: ENV.fetch('GITHUB_TOKEN', nil), + repo: github_repo, title: title, head: head, base: base,