Skip to content
Merged
Show file tree
Hide file tree
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
36 changes: 18 additions & 18 deletions .github/workflows/enforce-develop-pr.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: Enforce PRs Only from Develop
# name: Enforce PRs Only from Develop

on:
pull_request:
branches: [staging]
types: [opened, synchronize, reopened]
# on:
# pull_request:
# branches: [staging]
# types: [opened, synchronize, reopened]

jobs:
check-develop-only:
runs-on: ubuntu-latest
steps:
- name: Fail if source is not develop
run: |
echo "Source branch: ${{ github.head_ref }}"
if [[ "${{ github.head_ref }}" != "develop" ]]; then
echo "❌ Only PRs from 'develop' branch are allowed to merge into 'staging'."
exit 1
else
echo "✅ PR is from develop branch. Proceeding."
fi
# jobs:
# check-develop-only:
# runs-on: ubuntu-latest
# steps:
# - name: Fail if source is not develop
# run: |
# echo "Source branch: ${{ github.head_ref }}"
# if [[ "${{ github.head_ref }}" != "develop" ]]; then
# echo "❌ Only PRs from 'develop' branch are allowed to merge into 'staging'."
# exit 1
# else
# echo "✅ PR is from develop branch. Proceeding."
# fi
36 changes: 18 additions & 18 deletions .github/workflows/enforce-staging-pr.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: Enforce PRs Only from Staging
# name: Enforce PRs Only from Staging

on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
# on:
# pull_request:
# branches: [main]
# types: [opened, synchronize, reopened]

jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- name: Fail if source is not staging
run: |
echo "Source branch: ${{ github.head_ref }}"
if [[ "${{ github.head_ref }}" != "staging" ]]; then
echo "❌ Only PRs from 'staging' are allowed to merge into 'main'."
exit 1
else
echo "✅ PR is from staging branch. Proceeding."
fi
# jobs:
# check-branch:
# runs-on: ubuntu-latest
# steps:
# - name: Fail if source is not staging
# run: |
# echo "Source branch: ${{ github.head_ref }}"
# if [[ "${{ github.head_ref }}" != "staging" ]]; then
# echo "❌ Only PRs from 'staging' are allowed to merge into 'main'."
# exit 1
# else
# echo "✅ PR is from staging branch. Proceeding."
# fi
2 changes: 1 addition & 1 deletion test/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
behave==1.2.6
requests==2.32.3
requests==2.32.4
zeep
websocket-client
PyHamcrest