Skip to content

set pull request to main #5

set pull request to main

set pull request to main #5

Workflow file for this run

## Script might not be operational (WIP)
name: Review app on pull request
on:
pull_request:
branches: main
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
env:

Check failure on line 12 in .github/workflows/review-app.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/review-app.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
setup:
runs-on: ubuntu-latest
steps:
- id: install
run: npm install -g clever-tools
- id: create
run: clever create --type static-apache ${{ env.BRANCH_NAME }} --alias ${{ env.BRANCH_NAME }} --region par --org ${{secrets.ORGA_ID}}
- id: link
run: clever link --org ${{secrets.ORGA_ID}} ${{ env.BRANCH_NAME }} --alias ${{ env.BRANCH_NAME }} && clever scale --flavor XS
set-env:
runs-on: ubuntu-latest
steps:
- name: prebuild
run: clever env set CC_PRE_BUILD_HOOK "./clevercloud-deploy-script.sh"
- name: index
run: clever env set CC_WEBROOT "/public"
- name: hugo-env
run: clever env set HUGO_ENV "production"
- name: hugo-version
run: clever env set HUGO_VERSION "${{secrets.HUGO_VERSION}}"
- name: php
run: clever env set CC_PHP_VERSION "7"
- name: hugo-env
run: clever env set HUGO_VERSION "${{secrets.HUGO_VERSION}}"
- name: cgi
run: clever env set CC_CGI_IMPLEMENTATION "proxy_fcgi"
- name: composer
run: clever env set CC_COMPOSER_VERSION "2"
- name: domain
run: clever domain add ${{ env.BRANCH_NAME }}.cleverapps.io
deploy:
runs-on: ubuntu-latest
steps:
- name: Set up app
run: clever deploy