Skip to content

Commit

Permalink
Add some sanity checks to the release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
saagarjha committed Feb 24, 2024
1 parent 498f3ea commit e6a0451
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Sanity check
run: |
version="$(cat Configs/Deployment.xcconfig | grep CURRENT_PROJECT_VERSION | awk '{ print $3 }')"
# Make sure this version doesn't exist already
gh release list --json tagName | jq .[].tagName | ( ! grep -q "v$version" )
# Check that the commit message matches the version
git log -1 --pretty=%B | grep "\($version\)"
- name: Create App Store Connect Key file
run: echo "${{ secrets.APP_STORE_CONNECT_KEY }}" | base64 -d > /tmp/AuthKey.p8

Expand Down

0 comments on commit e6a0451

Please sign in to comment.