Skip to content

Commit

Permalink
fix(tools): use session auth and reintroduce license check (#11324)
Browse files Browse the repository at this point in the history
use session auth and reintroduce license check
  • Loading branch information
brainbicycle authored Dec 23, 2024
1 parent 2ed69e2 commit 5ca7e30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ jobs:
- run:
name: Update rollout if needed
command: ./scripts/deploys/update-android-rollout-if-needed
- run:
name: Notify if license agreement needs to be signed
command: ./scripts/deploys/notify-if-new-license-agreement

deploy-nightly-beta:
environment:
Expand Down
8 changes: 5 additions & 3 deletions fastlane/utility_fastlane.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@

desc "Checks app store connect if a license agreement needs to be signed"
lane :notify_if_new_license_agreement do
# TODO: This login method will no longer work for CI with 2fa being enforced
# Check spaceship docs for future support with api key
client = Spaceship::Tunes.login(ENV['FASTLANE_USERNAME'], ENV['FASTLANE_PASSWORD'])
# TODO: This login method uses a stored session, expires every 30 days and needs to be refreshed via
# `bundle exec fastlane spaceauth`
# then update the session env var in .env.releases with the output session
# this is annoying, keep an eye out for token based auth in future
client = Spaceship::Tunes.login
client.team_id = '479887'
messages = Spaceship::Tunes.client.fetch_program_license_agreement_messages

Expand Down
2 changes: 0 additions & 2 deletions scripts/deploys/notify-if-new-license-agreement
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env bash
set -euxo pipefail


bundle install
bundle exec fastlane notify_if_new_license_agreement

0 comments on commit 5ca7e30

Please sign in to comment.