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
13 changes: 13 additions & 0 deletions .github/workflows/apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ jobs:
run: |
VERSION="1.1.0.$(TZ='PST8PDT' date +%Y%m%d)"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Guardrail
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The step name "Guardrail" is vague. Consider a more descriptive name like "Check for existing branch" or "Prevent branch overwrite" to better indicate the step's purpose.

Suggested change
- name: Guardrail
- name: Check for existing branch

Copilot uses AI. Check for mistakes.
if: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' }}
shell: bash
run: |
VERSION="${{ steps.set_version.outputs.version }}"
BRANCH="swiftpm-${VERSION}"

if git ls-remote --exit-code "https://github.com/${{ github.repository }}" "refs/heads/${BRANCH}" > /dev/null 2>&1; then
echo "Branch '${BRANCH}' already exists!"
echo "Aborting workflow to prevent overwriting S3 binaries. The branch existence indicates this version was already published with specific checksums."
echo "Please delete the remote branch '${BRANCH}' and re-run this workflow."
exit 1
fi

build-demo-ios:
name: build-demo-ios
Expand Down
Loading