Skip to content

Commit 9c62a70

Browse files
authored
Merge pull request #24 from Cysharp/fix/strict_release
fix: release reject non .meta build / merge commit should build unity
2 parents b6121b1 + a563ad7 commit 9c62a70

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/build-debug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- run: dotnet test -c Debug ./tests/Ulid.SystemTextJson.Tests
3838

3939
build-unity:
40-
if: "(github.event == 'push' && github.repository_owner == 'Cysharp') || startsWith(github.event.pull_request.head.label, 'Cysharp:')"
40+
if: "(github.event_name == 'push' && github.repository_owner == 'Cysharp') || startsWith(github.event.pull_request.head.label, 'Cysharp:')"
4141
strategy:
4242
matrix:
4343
unity: ["2019.3.9f1", "2020.1.0b5"]

.github/workflows/build-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,16 @@ jobs:
134134
env:
135135
UNITY_PACKAGE_VERSION: ${{ env.GIT_TAG }}
136136

137+
- name: check all .meta is commited
138+
run: |
139+
if git ls-files --others --exclude-standard -t | grep --regexp='[.]meta$'; then
140+
echo "Detected .meta file generated. Do you forgot commit a .meta file?"
141+
exit 1
142+
else
143+
echo "Great, all .meta files are commited."
144+
fi
145+
working-directory: src/Ulid.Unity
146+
137147
# Store artifacts.
138148
- uses: actions/upload-artifact@v1
139149
with:

0 commit comments

Comments
 (0)