add_identifiers.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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@v5
  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. # Sync the GitHub runner clock with the Windows time server (workaround as suggested in https://github.com/actions/runner/issues/2996)
  29. - name: Sync clock
  30. run: sudo sntp -sS time.windows.com
  31. # Create or update identifiers for app
  32. - name: Fastlane Provision
  33. run: fastlane identifiers
  34. env:
  35. TEAMID: ${{ secrets.TEAMID }}
  36. GH_PAT: ${{ secrets.GH_PAT }}
  37. MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
  38. FASTLANE_KEY_ID: ${{ secrets.FASTLANE_KEY_ID }}
  39. FASTLANE_ISSUER_ID: ${{ secrets.FASTLANE_ISSUER_ID }}
  40. FASTLANE_KEY: ${{ secrets.FASTLANE_KEY }}