Skip to content

add branch name as pull request source #2

add branch name as pull request source

add branch name as pull request source #2

Workflow file for this run

## Script might not be operational (WIP)
name: Review app on pull request
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
on:
pull_request:
branches: ${{ env.BRANCH_NAME }}
env:
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:

Check failure on line 26 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 26
- id: prebuild
run: clever env set CC_PRE_BUILD_HOOK "./clevercloud-deploy-script.sh"
- id: index
run: clever env set CC_WEBROOT "/public"
- id: hugo-env
run: clever env set HUGO_ENV "production"
- id: hugo-version
run: clever env set HUGO_VERSION "${{secrets.HUGO_VERSION}}"
- id: php
run: clever env set CC_PHP_VERSION "7"
- id: hugo-env
run: clever env set HUGO_VERSION "${{secrets.HUGO_VERSION}}"
- id: cgi
run: clever env set CC_CGI_IMPLEMENTATION "proxy_fcgi"
- id: composer
run: clever env set CC_COMPOSER_VERSION "2"
- id: domain
run: clever domain add ${{ env.BRANCH_NAME }}.cleverapps.io
deploy:
runs-on: ubuntu-latest
steps:
- name: Set up app
run: clever deploy