Skip to content

Commit

Permalink
Merge pull request #3 from GeorgeLyon/dev/george/specialize-template-…
Browse files Browse the repository at this point in the history
…update

[iOS] Tweak Specialize Template Action
  • Loading branch information
GeorgeLyon authored Nov 10, 2024
2 parents 0da5198 + ed9f098 commit dad15bd
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

name: Specialize Template
on:
pull_request:
push:
branches: [main]

Expand All @@ -13,7 +14,6 @@ jobs:
permissions:
contents: write
runs-on: ubuntu-latest
if: github.event.repository.name != 'SwiftProjectTemplate'
steps:

- name: Checkout
Expand All @@ -25,6 +25,7 @@ jobs:
fetch-depth: 0

- name: Specialize Template Parameters
if: github.event.repository.name != 'SwiftProjectTemplate'
run: |
# Replacement Variables
NEW_PROJECT_NAME="${{ github.event.repository.name }}"
Expand All @@ -34,6 +35,12 @@ jobs:
# Run specialization script (requires variables defined above)
./specialize-template.sh "$NEW_PROJECT_BUNDLE_ID_PREFIX" "$NEW_PROJECT_NAME"
- name: Test Specializing Template Parameters
if: github.event.repository.name == 'SwiftProjectTemplate'
run: |
# Run specialization script (requires variables defined above)
./specialize-template.sh "com.codebygeorge" "TemplateSpecializationTest"
- name: Commit
run: |
Expand All @@ -43,6 +50,7 @@ jobs:
git commit -a --amend --no-edit --reset-author
- name: Push changes
if: github.event.repository.name != 'SwiftProjectTemplate'
uses: ad-m/[email protected]
with:
branch: main
Expand Down

0 comments on commit dad15bd

Please sign in to comment.