Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create restrict-branch-merge.yml #35

Merged
merged 10 commits into from
Sep 23, 2024
24 changes: 24 additions & 0 deletions .github/workflows/restrict-branch-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Enforce Branch Merge Rules"

on:
pull_request:
branches:
- main
- release

jobs:
check-branch:
runs-on: ubuntu-latest

steps:
- name: Enforce develop -> release
if: github.ref == 'refs/heads/release' && github.head_ref != 'develop'
run: |
echo "Only the develop branch can be merged into the release branch."
exit 1

- name: Enforce release/hotfix -> main
if: github.ref == 'refs/heads/main' && github.head_ref != 'release' && github.head_ref != 'hotfix'
run: |
echo "Only the release or hotfix branch can be merged into the main branch."
exit 1
16 changes: 0 additions & 16 deletions .github/workflows/restrict-main.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/restrict-release.yml

This file was deleted.

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# CHANGELOG


## 0.2.9

Release a version with Xcode 16


## 0.2.8

Fix Location Sync issue
Expand Down
2 changes: 1 addition & 1 deletion RiskManager.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
#

spec.name = "RiskManager"
spec.version = "0.2.8"
spec.version = "0.2.9"
spec.summary = "DeviceConnect IOS SDK to enable data collection from IOS devices"

# This description is used to generate tags and improve search results.
Expand Down