Add OCS-APIRequest: true to tables app check
This commit is contained in:
@@ -52,7 +52,7 @@ jobs:
|
|||||||
- name: Verify required apps are installed and ready
|
- name: Verify required apps are installed and ready
|
||||||
run: |
|
run: |
|
||||||
echo "Checking if required Nextcloud apps are installed and ready..."
|
echo "Checking if required Nextcloud apps are installed and ready..."
|
||||||
|
|
||||||
# Check Notes app
|
# Check Notes app
|
||||||
echo "Checking Notes app..."
|
echo "Checking Notes app..."
|
||||||
max_attempts=30
|
max_attempts=30
|
||||||
@@ -67,11 +67,11 @@ jobs:
|
|||||||
sleep 3
|
sleep 3
|
||||||
done
|
done
|
||||||
echo "Notes app is ready."
|
echo "Notes app is ready."
|
||||||
|
|
||||||
# Check Tables app
|
# Check Tables app
|
||||||
echo "Checking Tables app..."
|
echo "Checking Tables app..."
|
||||||
attempt=0
|
attempt=0
|
||||||
until curl -u admin:admin -s -w "%{http_code}\n" -o /dev/null http://localhost:8080/ocs/v2.php/apps/tables/api/2/tables | grep -q "200"; do
|
until curl -u admin:admin -H 'OCS-APIRequest: true' -s -w "%{http_code}\n" -o /dev/null http://localhost:8080/ocs/v2.php/apps/tables/api/2/tables | grep -q "200"; do
|
||||||
attempt=$((attempt + 1))
|
attempt=$((attempt + 1))
|
||||||
if [ $attempt -ge $max_attempts ]; then
|
if [ $attempt -ge $max_attempts ]; then
|
||||||
echo "Tables app not ready after $max_attempts attempts."
|
echo "Tables app not ready after $max_attempts attempts."
|
||||||
@@ -81,7 +81,7 @@ jobs:
|
|||||||
sleep 3
|
sleep 3
|
||||||
done
|
done
|
||||||
echo "Tables app is ready."
|
echo "Tables app is ready."
|
||||||
|
|
||||||
# Check Calendar app (CalDAV endpoint)
|
# Check Calendar app (CalDAV endpoint)
|
||||||
echo "Checking Calendar app..."
|
echo "Checking Calendar app..."
|
||||||
attempt=0
|
attempt=0
|
||||||
@@ -95,7 +95,7 @@ jobs:
|
|||||||
sleep 3
|
sleep 3
|
||||||
done
|
done
|
||||||
echo "Calendar app is ready."
|
echo "Calendar app is ready."
|
||||||
|
|
||||||
echo "All required apps are installed and ready!"
|
echo "All required apps are installed and ready!"
|
||||||
|
|
||||||
# Add subsequent steps here, e.g., running tests
|
# Add subsequent steps here, e.g., running tests
|
||||||
|
|||||||
Reference in New Issue
Block a user