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
6 changes: 3 additions & 3 deletions workflow-templates/npm-audit-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ jobs:
echo 'Not based on master/main/stable*, so skipping freeze check'
exit 0
fi
curl -sf "https://raw.githubusercontent.com/nextcloud/server/$SERVER_REF/version.php" --output version.php
if grep 'OC_VersionString' version.php | grep -q -i -E '(\.0\.0 RC[3-9]|\.[1-9][0-9]* RC)'; then
curl -sf "https://raw.githubusercontent.com/nextcloud/server/$SERVER_REF/version.php" --output "$RUNNER_TEMP/version.php"
if grep 'OC_VersionString' "$RUNNER_TEMP/version.php" | grep -q -i -E '(\.0\.0 RC[3-9]|\.[1-9][0-9]* RC)'; then
echo "Merge freeze is active for $SERVER_REF, skipping"
echo 'active=true' >> $GITHUB_OUTPUT
fi
rm version.php
rm "$RUNNER_TEMP/version.php"

- name: Read package.json node and npm engines version
if: steps.freeze.outputs.active != 'true'
Expand Down
6 changes: 3 additions & 3 deletions workflow-templates/sync-workflow-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ jobs:
echo 'Not based on master/main/stable*, so skipping freeze check'
exit 0
fi
curl -sf "https://raw.githubusercontent.com/nextcloud/server/$SERVER_REF/version.php" --output version.php
if grep 'OC_VersionString' version.php | grep -q -i -E '(\.0\.0 RC[3-9]|\.[1-9][0-9]* RC)'; then
curl -sf "https://raw.githubusercontent.com/nextcloud/server/$SERVER_REF/version.php" --output "$RUNNER_TEMP/version.php"
if grep 'OC_VersionString' "$RUNNER_TEMP/version.php" | grep -q -i -E '(\.0\.0 RC[3-9]|\.[1-9][0-9]* RC)'; then
echo "Merge freeze is active for $SERVER_REF, skipping"
echo 'active=true' >> $GITHUB_OUTPUT
fi
rm version.php
rm "$RUNNER_TEMP/version.php"

- name: Copy all workflow templates
if: steps.freeze.outputs.active != 'true'
Expand Down
6 changes: 3 additions & 3 deletions workflow-templates/update-nextcloud-ocp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ jobs:
echo 'Not based on master/main/stable*, so skipping freeze check'
exit 0
fi
curl -sf "https://raw.githubusercontent.com/nextcloud/server/$SERVER_REF/version.php" --output version.php
if grep 'OC_VersionString' version.php | grep -q -i -E '(\.0\.0 RC[3-9]|\.[1-9][0-9]* RC)'; then
curl -sf "https://raw.githubusercontent.com/nextcloud/server/$SERVER_REF/version.php" --output "$RUNNER_TEMP/version.php"
if grep 'OC_VersionString' "$RUNNER_TEMP/version.php" | grep -q -i -E '(\.0\.0 RC[3-9]|\.[1-9][0-9]* RC)'; then
echo "Merge freeze is active for $SERVER_REF, skipping"
echo 'active=true' >> $GITHUB_OUTPUT
fi
rm version.php
rm "$RUNNER_TEMP/version.php"

- name: Get php version
id: versions
Expand Down
Loading