Skip to content

Commit

Permalink
Tesgt
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang committed Nov 7, 2023
1 parent f748523 commit e847835
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/SwiftLint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@ jobs:
echo "Linting changed Swift files..."
swiftlint --config dydx/.swiftlint.yml --fix --format lint -- $SWIFT_FILES
fi
# if ! git diff --cached --quiet; then
- name: Commit and push if needed
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add .
git commit -am "SwiftLint"
git push
# fi
git commit -m "Apply SwiftLint fixes" || true # Commit if there are changes; do nothing if there are none
git push || echo "No changes to push"
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import dydxStateManager
import Abacus

public class dydxMarketInfoViewBuilder: NSObject, ObjectBuilderProtocol {
public func build<T>() -> T? {
public func build<T>() -> T? {
let presenter = dydxMarketInfoViewPresenter()
let view = presenter.viewModel?.createView() ?? PlatformViewModel().createView()
let viewController = dydxMarketInfoViewController(presenter: presenter, view: view, configuration: .nav)
Expand Down

0 comments on commit e847835

Please sign in to comment.