Skip to content

Commit

Permalink
Merge pull request #219 from tatsuz0u/develop
Browse files Browse the repository at this point in the history
Bugfixes
  • Loading branch information
tatsuz0u authored Feb 11, 2022
2 parents 89dd8a6 + 42f28a5 commit dfc3239
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
ALTSTORE_JSON_PATH: './AltStore.json'
BUILDS_PATH: '/tmp/action-builds'
ASC_KEY_PATH: '/Users/runner/private_keys'
FILTER_SWIFT_PATH: './actions-tool/ReleaseNotesFilter.swift'
FILTER_PATH: './actions-tool/ReleaseNotesFilter'
ARCHIVE_PATH: '/tmp/action-builds/EhPanda.xcarchive'
IPA_OUTPUT_PATH: '/tmp/action-builds/EhPanda.ipa'
Expand Down Expand Up @@ -88,6 +89,7 @@ jobs:
- name: Retrieve data
id: retrieve-data
run: |
swiftc -o $FILTER_PATH $FILTER_SWIFT_PATH
sudo chmod 777 $FILTER_PATH
echo "::set-output name=size::$(stat -f%z $IPA_OUTPUT_PATH)"
echo "::set-output name=version_date::$(date -u +"%Y-%m-%dT%T")"
Expand Down
Binary file removed actions-tool/ReleaseNotesFilter
Binary file not shown.
20 changes: 20 additions & 0 deletions actions-tool/ReleaseNotesFilter.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// main.swift
// EnglishFilter
//
// Created by 荒木辰造 on R 3/09/12.
//

import Foundation

print(
CommandLine.arguments[1]
.split(separator: "\r\n")
.map(String.init)
.filter({
Array(0...100)
.map({ .init($0) + ". " })
.contains(where: $0.hasPrefix)
})
.joined(separator: "\\n")
)

0 comments on commit dfc3239

Please sign in to comment.