iOS-6122: Add iOS build scripts #118
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tangem - Check if tag exists | |
on: | |
pull_request: | |
branches: | |
- 'master' | |
workflow_dispatch: | |
jobs: | |
check-tag: | |
name: Check if tag exists | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Read version.properties file | |
uses: BrycensRanch/read-properties-action@6b75d8ab70d5abeb5211f96b660c45c911732b6e # v1.0.4 | |
id: version | |
with: | |
file: version.properties | |
property: tangem | |
default: 0.0.1-tangem1 | |
- name: Echo version.properties | |
run: echo ${{ steps.version.outputs.tangem }} | |
- name: Check for Tag | |
run: | | |
TAG=${{ steps.version.outputs.tangem }} | |
if [ $(git tag -l "${TAG}") ]; then | |
echo "Tag ${TAG} exists. Please upgrade version in version.properties file" | |
exit 1 | |
else | |
echo "Tag ${TAG} does not exist" | |
fi | |
- name: Check version in the Podspec file | |
run: tools/check_if_podspec_file_updated ${{ steps.version.outputs.tangem }} |