Skip to content

Commit

Permalink
Install dependencies and use bundler to exec fastlane across workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
billybooth committed Sep 16, 2023
1 parent cee8d68 commit 182c123
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/add_identifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ jobs:
# Checks-out the repo
- name: Checkout Repo
uses: actions/checkout@v3

# Patch Fastlane Match to not print tables
- name: Patch Match Tables
run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"


# Install project dependencies
- name: Install Project Dependencies
run: bundle install

# Create or update identifiers for app
- name: Fastlane Provision
run: fastlane identifiers
run: bundle exec fastlane identifiers
env:
TEAMID: ${{ secrets.TEAMID }}
GH_PAT: ${{ secrets.GH_PAT }}
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/create_certs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ jobs:
# Checks-out the repo
- name: Checkout Repo
uses: actions/checkout@v3

# Patch Fastlane Match to not print tables
- name: Patch Match Tables
run: find /usr/local/lib/ruby/gems -name table_printer.rb | xargs sed -i "" "/puts(Terminal::Table.new(params))/d"


# Install project dependencies
- name: Install Project Dependencies
run: bundle install

# Create or update certificates for app
- name: Create Certificates
run: fastlane certs
run: bundle exec fastlane certs
env:
TEAMID: ${{ secrets.TEAMID }}
GH_PAT: ${{ secrets.GH_PAT }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/validate_secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v3


- name: Install Project Dependencies
run: bundle install

- name: Validate Fastlane Secrets
run: |
# Validate Fastlane Secrets
Expand Down Expand Up @@ -171,7 +174,7 @@ jobs:
elif ! echo "$FASTLANE_KEY" | openssl pkcs8 -nocrypt >/dev/null; then
failed=true
echo "::error::The FASTLANE_KEY secret is set but invalid. Verify that you copied it correctly from the API Key file (*.p8) you downloaded and try again."
elif ! fastlane validate_secrets 2>&1 | tee fastlane.log; then
elif ! bundle exec fastlane validate_secrets 2>&1 | tee fastlane.log; then
if grep -q "bad decrypt" fastlane.log; then
failed=true
echo "::error::Unable to decrypt the Match-Secrets repository using the MATCH_PASSWORD secret. Verify that it is set correctly and try again."
Expand Down

0 comments on commit 182c123

Please sign in to comment.