message: Do not run e2e from contributors
diff: @@ -52,6 +52,7 @@ jobs:
  run: yarn install
  - name: Start Appium Server
  + if: env.SENTRY_AUTH_TOKEN != null
  working-directory: ./sample
  run: yarn run appium --log-timestamp --log-no-colors --allow-insecure chromedriver_autodownload > appium.log &
  - name: Run Android Emulator
  @@ -63,7 +64,7 @@ jobs:
  - name: Upload Appium logs
  # This condition is so it uploads the logs always regardless of whether the previous step succeeded or not
  # otherwise it would not run if the previous step failed
  - if: ${{ always() }}
  + if: ${{ always() && env.SENTRY_AUTH_TOKEN != null }}
  uses: actions/upload-artifact@v2
  with:
  name: appium.android.log
  @@ -120,18 +121,22 @@ jobs:
  run: pod install
  - name: Start Appium Server
  + if: env.SENTRY_AUTH_TOKEN != null
  working-directory: ./sample
  run: yarn run appium --log-timestamp --log-no-colors --allow-insecure chromedriver_autodownload > appium.log &
  - name: Build and run iOS emulator
  + if: env.SENTRY_AUTH_TOKEN != null
  working-directory: ./sample
  run: react-native run-ios --configuration Release --simulator "${DEVICE}"
  - name: Build WDA
  + if: env.SENTRY_AUTH_TOKEN != null
  working-directory: ./sample
  run: xcodebuild -project ./node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath ./xc-build -destination name="${DEVICE}" IPHONEOS_DEPLOYMENT_TARGET=$IOS_DEPLOYMENT_TARGET GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO build
  # Ping the Appium server to make sure its running, this way if it does fail it'll be easy to tell that this step failed and not the tests
  - name: Ping Appium Server
  + if: env.SENTRY_AUTH_TOKEN != null
  run: curl --output /dev/null --silent --head --fail http://127.0.0.1:4723/wd/hub/sessions
  - name: Run Tests
  working-directory: ./sample
  @@ -140,7 +145,7 @@ jobs:
  - name: Upload Appium logs
  # This condition is so it uploads the logs always regardless of whether the previous step succeeded or not
  # otherwise it would not run if the previous step failed
  - if: ${{ always() }}
  + if: ${{ always() && env.SENTRY_AUTH_TOKEN != null }}
  uses: actions/upload-artifact@v2
  with:
  name: appium.ios.log
  