Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/workflows/ipa-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Release IPA Package

on:
workflow_dispatch:
inputs:
workflow_call:
description: 'To distinguish workflow_call from regular push'
type: boolean
required: false
default: true
push:
branches:
- main
Expand All @@ -10,12 +16,12 @@ on:

jobs:
check-version:
runs-on: ubuntu-latest
outputs:
version_changed: ${{ steps.version_check.outputs.version_changed }}
runs-on: ubuntu-latest
outputs:
version_changed: ${{ steps.version_check.outputs.version_changed }}

steps:
- name: Checkout Repository
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
with:
fetch-depth: 0
Expand All @@ -24,7 +30,7 @@ jobs:
.github/scripts
- name: Fetch Versions
id: version_check
env:
env:
BASE_BRANCH: "main~1"
run: |
version_changed=$(./.github/scripts/ipa_version_check.sh)
Expand All @@ -37,7 +43,7 @@ jobs:
permissions:
contents: read
id-token: write
if: ${{ needs.check-version.outputs.version_changed == 'true' }}
if: ${{ needs.check-version.outputs.version_changed == 'true' || inputs.workflow_call }}

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
Expand Down