Skip to content

Commit e96bdd2

Browse files
authored
Template update (#2)
1 parent f9beff6 commit e96bdd2

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Pull request
22
on: pull_request
33

44
jobs:
5-
build:
5+
pull-request:
66
runs-on: macos-15
77

88
steps:
@@ -12,7 +12,6 @@ jobs:
1212
env:
1313
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1414
run: |
15-
echo "GITHUB_TOKEN=${{ env.GITHUB_TOKEN }}" >> $GITHUB_ENV
1615
curl https://mise.run | sh
1716
mise install
1817

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Draft release
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
run: |
17+
TAG_NAME=${GITHUB_REF#refs/tags/}
18+
gh release create "$TAG_NAME" \
19+
--repo="$GITHUB_REPOSITORY" \
20+
--generate-notes \
21+
--draft

.swiftlint.tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
disabled_rules:
2+
- function_body_length
23
- no_magic_numbers

.swiftlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,4 @@ custom_rules:
192192
empty_line_after_type_declaration:
193193
name: "Empty line after type declaration"
194194
message: "Type declaration should start with an empty line."
195-
regex: "( |^)(actor|class|struct|enum|protocol|extension) (?!var)[^\\{]*? \\{(?!\\}) *\\n? *\\S"
195+
regex: "( |^)(actor|class|struct|enum|protocol|extension) (?!var)[^\\{]*? \\{(?!\\n*\\}) *\\n? *\\S"

0 commit comments

Comments
 (0)