add_identifiers.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: 2. Add Identifiers
  2. run-name: Add Identifiers (${{ github.ref_name }})
  3. on:
  4. workflow_dispatch:
  5. jobs:
  6. validate:
  7. name: Validate
  8. uses: ./.github/workflows/validate_secrets.yml
  9. secrets: inherit
  10. identifiers:
  11. name: Add Identifiers
  12. needs: validate
  13. runs-on: macos-15
  14. steps:
  15. # Checks-out the repo
  16. - name: Checkout Repo
  17. uses: actions/checkout@v4
  18. # Patch Fastlane Match to not print tables
  19. - name: Patch Match Tables
  20. run: |
  21. TABLE_PRINTER_PATH=$(ruby -e 'puts Gem::Specification.find_by_name("fastlane").gem_dir')/match/lib/match/table_printer.rb
  22. if [ -f "$TABLE_PRINTER_PATH" ]; then
  23. sed -i "" "/puts(Terminal::Table.new(params))/d" "$TABLE_PRINTER_PATH"
  24. else
  25. echo "table_printer.rb not found"
  26. exit 1
  27. fi
  28. # Install project dependencies
  29. - name: Install Project Dependencies
  30. run: bundle install
  31. # Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
  32. - name: Sync clock
  33. run: sudo sntp -sS time.windows.com
  34. # Create or update identifiers for app
  35. - name: Fastlane Provision
  36. run: bundle exec fastlane identifiers
  37. env:
  38. TEAMID: ${{ secrets.TEAMID }}
  39. GH_PAT: ${{ secrets.GH_PAT }}
  40. MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
  41. FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
  42. FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
  43. FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}