Skip to content

Test env var setting #17

Test env var setting

Test env var setting #17

Workflow file for this run

name: Caprover
on:
push:
branches: ["main"]
tags:
- '**'
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Deploy caprover
id: caprover
uses: josedev-union/caprover-compose-action@support-env
with:
server: ${{ secrets.CAPTAIN_SERVER_URL }}
password: ${{ secrets.CAPTAIN_SERVER_PASSWORD }}
keep: (github.event_name == 'pull_request' && github.event.action == 'closed') != true
- name: Output App urls as git comment
uses: actions/github-script@v6
if: github.event_name == 'pull_request'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const output = `#### Caprover deployment url 🖌\`${{ steps.caprover.outcome }}\` `${{ steps.caprover.outputs.frontend }}``;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})