Skip to content

Commit 30ebb20

Browse files
authored
Merge pull request #107 from jungwuk-ryu/develop
2025-01-04 베타 (build 73)
2 parents 836b7d3 + 75b6104 commit 30ebb20

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Beta App Version Check
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
branches: [beta]
7+
8+
jobs:
9+
beta-app-version-check:
10+
runs-on: ubuntu-latest
11+
12+
if: >
13+
github.event.pull_request.base.ref == 'beta' &&
14+
github.event.pull_request.head.ref == 'develop'
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Compare versions
21+
shell: bash
22+
run: |
23+
set -euo pipefail
24+
25+
git fetch origin develop:refs/remotes/origin/develop
26+
git fetch origin beta:refs/remotes/origin/beta
27+
28+
develop_ver_full="$(git show origin/develop:pubspec.yaml | awk -F': *' '$1=="version"{print $2; exit}')"
29+
beta_ver_full="$(git show origin/beta:pubspec.yaml | awk -F': *' '$1=="version"{print $2; exit}')"
30+
31+
if [[ "${beta_ver_full}" == "${develop_ver_full}" ]]; then
32+
echo "❌ FAIL: 릴리즈 버전과 베타의 버전이 동일합니다."
33+
exit 1
34+
fi
35+
36+
echo "✅ OK"

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
1616
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1717
# In Windows, build-name is used as the major, minor, and patch parts
1818
# of the product and file versions while build-number is used as the build suffix.
19-
version: 1.3.1+1
19+
version: 1.4.0+1
2020

2121
environment:
2222
sdk: ^3.8.0-278.1.beta

0 commit comments

Comments
 (0)