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 cdddb95
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 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,18 @@ 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
! git tag --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 cdddb95

Please sign in to comment.