Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
49edf9d
Bump version to 0.1.136
actions-user Jan 5, 2026
bd34f51
fix(workflow): Fix beta release branch reference master→main and add …
rubenvdlinde Jan 9, 2026
66e25f2
Merge remote-tracking branch 'origin/feature/newopenregister' into fe…
rubenvdlinde Jan 9, 2026
702489f
Lets test GEMMA
rubenvdlinde Jan 13, 2026
e134913
Merge remote-tracking branch 'origin/feature/newopenregister' into fe…
rubenvdlinde Jan 13, 2026
9a96415
Bump beta version to 0.1.137-beta.3 [skip ci]
actions-user Jan 13, 2026
884e828
Fix ArchiMate import statistics showing 0 created/updated/unchanged
rubenvdlinde Jan 15, 2026
5e534e6
Fix compatibility with the new version of the configService
rjzondervan Jan 15, 2026
464968f
Fix ArchiMate import statistics: change skipped to unchanged
rubenvdlinde Jan 15, 2026
52a233a
WIP: Fix ArchiMate statistics - change skipped to unchanged (not work…
rubenvdlinde Jan 15, 2026
5892e9e
Fix ArchiMate import statistics structure: changed 'skipped' to 'unch…
rubenvdlinde Jan 15, 2026
befb7f2
Fix ArchiMate import statistics using ObjectService results
rubenvdlinde Jan 15, 2026
9dd4624
Merge remote-tracking branch 'origin/fix/settingsService' into featur…
rubenvdlinde Jan 16, 2026
c99689f
Test scripts
rubenvdlinde Jan 16, 2026
1abb02c
Bump beta version to 0.1.137-beta.4 [skip ci]
actions-user Jan 16, 2026
bccfdfc
Fix organisation page to only extend contactpersonen, not @self.schema
rubenvdlinde Jan 18, 2026
465d47f
Fix: Remove unnecessary _extend from audit-trails and files endpoints
rubenvdlinde Jan 18, 2026
8be6852
Remove frontend-forced _source parameter, let backend decide
rubenvdlinde Jan 18, 2026
c960ad1
Fix: Only send changed fields when activating organisation
rubenvdlinde Jan 18, 2026
c3f9877
Fixes for automatic user creation
rubenvdlinde Jan 18, 2026
a2100c2
Merge remote-tracking branch 'origin/feature/newopenregister' into fe…
rubenvdlinde Jan 18, 2026
c55a885
Bump beta version to 0.1.137-beta.5 [skip ci]
actions-user Jan 18, 2026
1c31054
Fixes and schema updated
rubenvdlinde Jan 18, 2026
1f27f2c
Merge remote-tracking branch 'origin/feature/newopenregister' into fe…
rubenvdlinde Jan 18, 2026
b0e6361
feat: Add Twig default values for type fields for backward compatibility
rubenvdlinde Jan 18, 2026
a0c4cd2
Bump beta version to 0.1.137-beta.6 [skip ci]
actions-user Jan 18, 2026
6b66550
fix: Support e-mailadres property name for contact email lookup
rubenvdlinde Jan 18, 2026
aa88e2c
Merge remote-tracking branch 'origin/feature/newopenregister' into fe…
rubenvdlinde Jan 18, 2026
d7fd6f2
Small fixes on aanbod service
rubenvdlinde Jan 18, 2026
3265f0d
Bump beta version to 0.1.137-beta.7 [skip ci]
actions-user Jan 18, 2026
14d8b87
Lots of small fixes
rubenvdlinde Jan 19, 2026
5820bb7
BUssy on getitng a proper archi import
rubenvdlinde Jan 19, 2026
287f022
Configuration fix
rubenvdlinde Jan 19, 2026
07c84d2
Bump beta version to 0.1.137-beta.8 [skip ci]
actions-user Jan 19, 2026
3e6aa0a
Merge remote-tracking branch 'origin/feature/newopenregister' into fe…
rubenvdlinde Jan 19, 2026
79509de
Fixes to the archimate import
rubenvdlinde Jan 19, 2026
d781e77
Bump beta version to 0.1.137-beta.9 [skip ci]
actions-user Jan 19, 2026
fe7b6a1
Bit of updates to the subscribers
rubenvdlinde Jan 19, 2026
d0d9d63
Done with it
rubenvdlinde Jan 19, 2026
cf93d8e
Merge remote-tracking branch 'origin/feature/newopenregister' into fe…
rubenvdlinde Jan 19, 2026
e8626d2
Bump beta version to 0.1.137-beta.10 [skip ci]
actions-user Jan 19, 2026
386abc5
Configuraiton update
rubenvdlinde Jan 19, 2026
51611ea
Merge remote-tracking branch 'origin/feature/newopenregister' into fe…
rubenvdlinde Jan 19, 2026
0545f34
Bump beta version to 0.1.137-beta.11 [skip ci]
actions-user Jan 19, 2026
ecf4b09
Fixing organisation and user creation
rubenvdlinde Jan 19, 2026
921eec0
Merge remote-tracking branch 'origin/feature/newopenregister' into fe…
rubenvdlinde Jan 19, 2026
31f27fb
Teting the new release workflow
rubenvdlinde Jan 19, 2026
c32987b
Merge branch 'feature/newopenregister' into HEAD
rubenvdlinde Jan 19, 2026
0e2d9e7
Fixed critcal speed issue in the setting serivce
rubenvdlinde Jan 20, 2026
7a3bdea
Merge commit '0e2d9e7e3162dc80e48ca11dab1765135a2276b0' into feature/…
rubenvdlinde Jan 20, 2026
af236ad
Lets setup a release
rubenvdlinde Jan 20, 2026
f1ce996
optimize the test flow
rubenvdlinde Jan 20, 2026
65aeabb
Bump beta version to 0.1.137-beta.12 [skip ci]
actions-user Jan 20, 2026
2b71333
Merge branch 'feature/newopenregister' into beta-release
rubenvdlinde Jan 20, 2026
0a5bf61
Merge pull request #154 from ConductionNL/beta-release
rubenvdlinde Jan 20, 2026
d6fc097
Bump beta version to 0.1.137-beta.13 [skip ci]
actions-user Jan 20, 2026
5579009
Small fixes on activating users
rubenvdlinde Jan 20, 2026
dd084c1
Merge pull request #155 from ConductionNL/beta-release
rubenvdlinde Jan 20, 2026
54fe852
Bump beta version to 0.1.137-beta.14 [skip ci]
actions-user Jan 20, 2026
c4ac4a0
Moved initialization out of the call flow
rubenvdlinde Jan 20, 2026
092aa33
Merge pull request #156 from ConductionNL/beta-release
rubenvdlinde Jan 20, 2026
13d6cda
Bump beta version to 0.1.137-beta.15 [skip ci]
actions-user Jan 20, 2026
7997402
Fixing module compliancy
rubenvdlinde Jan 20, 2026
46d2a02
fix: Make status field optional in gebruik schema
rubenvdlinde Jan 20, 2026
ea6adc1
Merge pull request #157 from ConductionNL/beta-release
rubenvdlinde Jan 20, 2026
27c3f74
Bump beta version to 0.1.137-beta.16 [skip ci]
actions-user Jan 20, 2026
6dfd63f
fix: Add register and schema params to module lookup for magic tables
rubenvdlinde Jan 20, 2026
214c29b
Merge pull request #158 from ConductionNL/beta-release
rubenvdlinde Jan 20, 2026
18778f2
Bump beta version to 0.1.137-beta.17 [skip ci]
actions-user Jan 20, 2026
8505dee
fixing the sync service
rubenvdlinde Jan 20, 2026
916fb99
Merge pull request #159 from ConductionNL/beta-release
rubenvdlinde Jan 20, 2026
22d2249
Bump beta version to 0.1.137-beta.18 [skip ci]
actions-user Jan 20, 2026
d9e94f6
fix: Use standaardVersies property for module standards sync
rubenvdlinde Jan 20, 2026
d282759
feat: Support _extend parameter for registers and schemas in gebruik …
rubenvdlinde Jan 20, 2026
77459b7
fix: Return empty results for non-logged-in users in gebruik endpoint
rubenvdlinde Jan 20, 2026
d684ae5
Merge pull request #160 from ConductionNL/beta-release
rubenvdlinde Jan 20, 2026
fd0952b
Bump beta version to 0.1.137-beta.19 [skip ci]
actions-user Jan 20, 2026
ba08e6a
fix: Allow public access to gebruik endpoint
rubenvdlinde Jan 20, 2026
6834303
Updating configuration
rubenvdlinde Jan 21, 2026
881caa6
Pagination fixes
rubenvdlinde Jan 21, 2026
95ca64b
Merge pull request #161 from ConductionNL/beta-release
rubenvdlinde Jan 21, 2026
d3001d1
Bump beta version to 0.1.137-beta.20 [skip ci]
actions-user Jan 21, 2026
5353d25
Working on updating organisations
rubenvdlinde Jan 21, 2026
a718faf
Merge pull request #162 from ConductionNL/beta-release
rubenvdlinde Jan 21, 2026
48f6d02
Bump beta version to 0.1.137-beta.21 [skip ci]
actions-user Jan 21, 2026
0d30175
More test scripting
rubenvdlinde Jan 21, 2026
350bf7a
Merge pull request #163 from ConductionNL/beta-release
rubenvdlinde Jan 21, 2026
178cb39
Bump beta version to 0.1.137-beta.22 [skip ci]
actions-user Jan 21, 2026
a2d2d51
Speedup the applicaite wizard
rubenvdlinde Jan 21, 2026
818e28c
import fix
rubenvdlinde Jan 21, 2026
8201296
Merge pull request #165 from ConductionNL/beta-release
rubenvdlinde Jan 21, 2026
695d0d5
Bump beta version to 0.1.137-beta.23 [skip ci]
actions-user Jan 21, 2026
115bb4b
RBAC on schemas
rubenvdlinde Jan 22, 2026
8b43eca
Merge pull request #166 from ConductionNL/beta-release
rubenvdlinde Jan 22, 2026
974eba4
Bump beta version to 0.1.137-beta.24 [skip ci]
actions-user Jan 22, 2026
8f3b689
Load fix
rubenvdlinde Jan 24, 2026
962a107
Small changes to the schemas
rubenvdlinde Jan 25, 2026
f617e9d
Use the dashbaord page
rubenvdlinde Jan 25, 2026
e99da5e
fixing the forewards and reloads
rubenvdlinde Jan 25, 2026
e28225f
Merge pull request #167 from ConductionNL/beta-release
rubenvdlinde Jan 25, 2026
9f023be
Bump beta version to 0.1.137-beta.25 [skip ci]
actions-user Jan 25, 2026
bc4dc9e
Lets get some more fixes into gebruiekrs activeren
rubenvdlinde Jan 26, 2026
5c5bd65
Merge pull request #168 from ConductionNL/beta-release
rubenvdlinde Jan 26, 2026
bf07014
Bump beta version to 0.1.137-beta.26 [skip ci]
actions-user Jan 26, 2026
ed68adc
Fix using the wrong method
rubenvdlinde Jan 26, 2026
d51b012
Merge pull request #169 from ConductionNL/beta-release
rubenvdlinde Jan 26, 2026
739e4da
Bump beta version to 0.1.137-beta.27 [skip ci]
actions-user Jan 26, 2026
1beace6
Update RBAC for software catalog
rubenvdlinde Jan 27, 2026
133dfe8
Fixes for user creation
rubenvdlinde Jan 28, 2026
13cf9a0
Merge pull request #170 from ConductionNL/beta-release
rubenvdlinde Jan 28, 2026
7dec556
Bump beta version to 0.1.137-beta.28 [skip ci]
actions-user Jan 28, 2026
1116f2d
Added names and descriptions from PowerPoint
remko48 Feb 4, 2026
ab4eb49
Updated beta release to development
remko48 Feb 4, 2026
8374b1b
Merge pull request #172 from ConductionNL/feature/powerpoint-names
remko48 Feb 4, 2026
972a9fe
Bump beta version to 0.1.137-beta.29 [skip ci]
actions-user Feb 4, 2026
76b65c4
Add dashboard widgets and CI/CD workflows
rubenvdlinde Feb 6, 2026
b01fc96
Bump unstable version to 0.1.137-unstable.1 [skip ci]
actions-user Feb 6, 2026
37e3bb8
Update branch protection: main from beta, beta from development
rubenvdlinde Feb 6, 2026
b37503d
Bump unstable version to 0.1.137-unstable.2 [skip ci]
actions-user Feb 6, 2026
a013d47
Automatische versies
rubenvdlinde Feb 16, 2026
7c5b5a7
Loking into user contactpersoon sync
rubenvdlinde Feb 16, 2026
53125e9
Merge pull request #174 from ConductionNL/feature/automatisch-versies
rubenvdlinde Feb 16, 2026
8e9b955
Bump unstable version to 0.1.137-unstable.3 [skip ci]
actions-user Feb 16, 2026
2786364
FFixing the archimate export
rubenvdlinde Feb 16, 2026
9f9846f
Fix the archimate imports
rubenvdlinde Feb 17, 2026
eb1b338
Merge pull request #175 from ConductionNL/feature/automatisch-versies
rubenvdlinde Feb 17, 2026
2d21a03
Bump unstable version to 0.1.137-unstable.4 [skip ci]
actions-user Feb 17, 2026
3e871ca
More amef fixes
rubenvdlinde Feb 17, 2026
ff2b040
Bettter folder structure for archimate
rubenvdlinde Feb 17, 2026
2d9a31f
Add three-tier release workflow files [skip ci]
rubenvdlinde Feb 18, 2026
46ad7f5
Let see is we can trigger a build
rubenvdlinde Feb 18, 2026
dec7c19
Merge remote-tracking branch 'origin/development' into feature/automa…
rubenvdlinde Feb 18, 2026
3a10abc
Merge pull request #176 from ConductionNL/feature/automatisch-versies
rubenvdlinde Feb 18, 2026
c2ae3af
Bump unstable version to 0.1.137-unstable.5 [skip ci]
actions-user Feb 18, 2026
572bd79
Bump version to 0.1.138
rubenvdlinde Feb 19, 2026
683b251
Bump unstable version to 0.1.137-unstable.1 [skip ci]
actions-user Feb 19, 2026
d2b8542
fix: Use version from info.xml in unstable release workflow
rubenvdlinde Feb 19, 2026
664090a
Gebruik en contactpersoon fixes
rubenvdlinde Feb 19, 2026
68703d9
Deactivatin cron user creation
rubenvdlinde Feb 19, 2026
daf8995
Merge branch 'main' into main-to-dev
remko48 Feb 19, 2026
ab6cca9
update
remko48 Feb 19, 2026
6bac137
lint
remko48 Feb 19, 2026
c1c9275
Merge pull request #181 from ConductionNL/main-to-dev
remko48 Feb 19, 2026
6f7766b
Updated description
remko48 Feb 19, 2026
9a83e82
Merge pull request #182 from ConductionNL/feature/dienst-logo-property
remko48 Feb 19, 2026
a5588e2
Fix unstable release
remko48 Feb 19, 2026
18ed86c
Merge pull request #183 from ConductionNL/feature/dienst-logo-property
remko48 Feb 19, 2026
03bad76
Merge remote-tracking branch 'origin/development' into development
rubenvdlinde Feb 19, 2026
40f05b2
Lets fix contactpersoon handling and rbac
rubenvdlinde Feb 19, 2026
b92c8a7
Fixing user create hooks on contactpersoon
rubenvdlinde Feb 19, 2026
e68ddf0
Merge remote-tracking branch 'origin/development' into feature/dienst…
remko48 Feb 19, 2026
4d2464c
Updated properties
remko48 Feb 19, 2026
7cbb3ab
Merge pull request #184 from ConductionNL/feature/dienst-logo-property
remko48 Feb 19, 2026
5025cbb
Merge remote-tracking branch 'origin/development' into development
rubenvdlinde Feb 19, 2026
d04745e
Auto stash before merge of "development" and "origin/development"
rubenvdlinde Feb 19, 2026
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
29 changes: 5 additions & 24 deletions .github/workflows/beta-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,31 @@ name: Beta Release
on:
push:
branches:
- feature/newopenregister
# - beta
- beta

jobs:
release-management:
runs-on: ubuntu-latest
steps:

# Stap 1: Code ophalen
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
ssh-key: ${{ secrets.DEPLOY_KEY }}

# Stap 2: Stel de appnaam in (gebruik de repo-naam)
- name: Set app env
run: |
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV

# Stap 3: Haal huidige versie uit info.xml, verhoog de patch en voeg beta-suffix toe
- name: Get current version and append beta suffix
id: increment_version
run: |
# Get version from main branch
git fetch origin main
main_version=$(git show origin/main:appinfo/info.xml | grep -oP '(?<=<version>)[^<]+' || echo "")

# Get current version from feature/newopenregister branch
# Get current version from current branch
current_version=$(grep -oP '(?<=<version>)[^<]+' appinfo/info.xml || echo "")

# Split main version into parts
Expand All @@ -43,7 +39,7 @@ jobs:
# Extract beta counter from current version if it exists
beta_counter=1
if [[ $current_version =~ -beta\.([0-9]+)$ ]]; then
# If current patch version is still ahead of master, increment counter
# If current patch version is still ahead of main, increment counter
current_patch=$(echo $current_version | grep -oP '^[0-9]+\.[0-9]+\.(\d+)' | cut -d. -f3)
if [ "$current_patch" -eq "$next_patch" ]; then
beta_counter=$((BASH_REMATCH[1] + 1))
Expand All @@ -58,44 +54,37 @@ jobs:
echo "Current version: $current_version"
echo "Using beta version: $beta_version"

# Stap 4: Update de versie in info.xml
- name: Update version in info.xml
run: |
sed -i "s|<version>.*</version>|<version>${{ env.NEW_VERSION }}</version>|" appinfo/info.xml

# Stap 5: Commit de nieuwe versie (indien er wijzigingen zijn)
- name: Commit version update
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -am "Bump beta version to ${{ env.NEW_VERSION }} [skip ci]"
git push

# Stap 6: Bereid de signing certificaten voor
- name: Prepare Signing Certificate and Key
run: |
echo "${{ secrets.NEXTCLOUD_SIGNING_CERT }}" > signing-cert.crt
echo "${{ secrets.NEXTCLOUD_SIGNING_KEY }}" > signing-key.key

# Stap 7: Installeer npm dependencies
- name: Install npm dependencies
uses: actions/setup-node@v3
with:
node-version: '18.x'

# Stap 8: Stel PHP in en installeer benodigde extensies
- name: Set up PHP and install extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: zip, gd

# Stap 9: Voer npm install, build en composer install uit
- run: npm ci
- run: npm run build
- run: composer install --no-dev

# Stap 10: Kopieer de bestanden naar de package directory
- name: Copy the package files into the package
run: |
mkdir -p package/${{ github.event.repository.name }}
Expand Down Expand Up @@ -137,45 +126,39 @@ jobs:
--exclude='.nvmrc' \
./ package/${{ github.event.repository.name }}/

# Stap 11: Maak het TAR.GZ archief
- name: Create Tarball
run: |
cd package && tar -czf ../nextcloud-release.tar.gz ${{ github.event.repository.name }}

# Stap 12: Sign het TAR.GZ bestand met OpenSSL
- name: Sign the TAR.GZ file with OpenSSL
run: |
openssl dgst -sha512 -sign signing-key.key nextcloud-release.tar.gz | openssl base64 -out nextcloud-release.signature

# Stap 13: Genereer Git versie informatie (optioneel, voor logging)
- name: Git Version
id: version
uses: codacy/git-version@2.7.1
with:
release-branch: feature/newopenregister
release-branch: beta

# Stap 14: Extraheer repository description (optioneel)
- name: Extract repository description
id: repo-description
run: |
description=$(jq -r '.description' <(curl -s https://api.github.com/repos/${{ github.repository }}))
echo "REPO_DESCRIPTION=$description" >> $GITHUB_ENV

# Stap 15: Output de versie (voor logging)
- name: Use the version
run: |
echo "Git Version info: ${{ steps.version.outputs.version }}"

# Stap 17: Maak een nieuwe GitHub release (als prerelease)
- name: Upload Beta Release
uses: ncipollo/release-action@v1.12.0
with:
tag: v${{ env.NEW_VERSION }}
name: Beta Release ${{ env.NEW_VERSION }}
draft: false
prerelease: true
skipIfReleaseExists: true

# Stap 18: Voeg het tarball toe als asset aan de GitHub release
- name: Attach tarball to GitHub release
uses: svenstaro/upload-release-action@v2
with:
Expand All @@ -185,7 +168,6 @@ jobs:
tag: v${{ env.NEW_VERSION }}
overwrite: true

# Stap 19: Upload de app naar de Nextcloud App Store
- name: Upload app to Nextcloud appstore
uses: nextcloud-releases/nextcloud-appstore-push-action@a011fe619bcf6e77ddebc96f9908e1af4071b9c1
with:
Expand All @@ -195,7 +177,6 @@ jobs:
app_private_key: ${{ secrets.NEXTCLOUD_SIGNING_KEY }}
nightly: false

# Stap 20: Verifieer de release
- name: Verify version and contents
run: |
echo "App version: ${{ env.NEW_VERSION }}"
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Branch Protection

on:
pull_request:
branches:
- main
- beta

jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- name: Check branch
run: |
TARGET="${{ github.base_ref }}"
SOURCE="${{ github.head_ref }}"

if [[ "$TARGET" == "main" ]]; then
if [[ "$SOURCE" != "beta" ]] && ! [[ "$SOURCE" =~ ^hotfix ]]; then
echo "Error: Pull requests to main must come from 'beta' or a branch starting with 'hotfix'"
echo "Source branch: $SOURCE"
exit 1
fi
elif [[ "$TARGET" == "beta" ]]; then
if [[ "$SOURCE" != "development" ]] && ! [[ "$SOURCE" =~ ^hotfix ]]; then
echo "Error: Pull requests to beta must come from 'development' or a branch starting with 'hotfix'"
echo "Source branch: $SOURCE"
exit 1
fi
fi

echo "Branch check passed: $SOURCE -> $TARGET"
32 changes: 32 additions & 0 deletions .github/workflows/pull-request-from-branch-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Branch Protection

on:
pull_request:
branches:
- main
- beta

jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- name: Check branch
run: |
TARGET="${{ github.base_ref }}"
SOURCE="${{ github.head_ref }}"

if [[ "$TARGET" == "main" ]]; then
if [[ "$SOURCE" != "beta" ]] && ! [[ "$SOURCE" =~ ^hotfix ]]; then
echo "Error: Pull requests to main must come from 'beta' or a branch starting with 'hotfix'"
echo "Source branch: $SOURCE"
exit 1
fi
elif [[ "$TARGET" == "beta" ]]; then
if [[ "$SOURCE" != "development" ]] && ! [[ "$SOURCE" =~ ^hotfix ]]; then
echo "Error: Pull requests to beta must come from 'development' or a branch starting with 'hotfix'"
echo "Source branch: $SOURCE"
exit 1
fi
fi

echo "Branch check passed: $SOURCE -> $TARGET"
21 changes: 21 additions & 0 deletions .github/workflows/pull-request-lint-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint Check

on:
pull_request:
branches:
- development
- main

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

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install dependencies
run: npm i

- name: Linting
run: npm run lint
44 changes: 44 additions & 0 deletions .github/workflows/push-development-to-beta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Create PR to Beta

permissions:
contents: write
pull-requests: write

on:
push:
branches:
- development

jobs:
create-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Create or update PR to beta
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Check if beta branch exists
if ! git ls-remote --heads origin beta | grep -q beta; then
echo "Beta branch does not exist yet. Creating from development..."
git push origin origin/development:refs/heads/beta
fi

# Check if a PR already exists
EXISTING_PR=$(gh pr list --base beta --head development --state open --json number --jq '.[0].number' || echo "")

if [ -n "$EXISTING_PR" ] && [ "$EXISTING_PR" != "null" ]; then
echo "PR #$EXISTING_PR already exists, it will auto-update with new commits"
else
gh pr create \
--base beta \
--head development \
--title "Release: merge development into beta" \
--body "Automated PR to sync development changes to beta for beta release.

Merging this PR will trigger the beta release workflow."
fi
Loading
Loading