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 92f7e7a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
runs-on: macos-14
environment: Release
env:
GITHUB_API_BASE_URL: https://api.github.com/repos/${{ github.repository }}
GH_TOKEN: ${{ github.token }}
XCODEBUILD_EXTRA_ARGS: >
-allowProvisioningUpdates
Expand All @@ -23,6 +22,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Sanity check
run: |
set -x
version="$(cat Configs/Deployment.xcconfig | grep CURRENT_PROJECT_VERSION | awk '{ print $3 }')"
# Make sure this version doesn't exist already
# GitHub CI gh doesn't support --json
gh release list | ( ! 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 92f7e7a

Please sign in to comment.