Skip to content

chore(ci): replace actions converge/dismiss with steps #589

chore(ci): replace actions converge/dismiss with steps

chore(ci): replace actions converge/dismiss with steps #589

Workflow file for this run

name: Review website
on:
pull_request:
types: [labeled, synchronize]
workflow_dispatch:
env:
WERF_REPO: "ghcr.io/${{ github.repository_owner }}/trdl"
jobs:
converge:
name: Converge to Review
runs-on: ubuntu-latest-4-cores
if: github.event.label.name == 'review docs' || contains( github.event.pull_request.labels.*.name, 'review docs' )
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Print review URL
env:
ENV_URL: "review-${{ github.event.number }}.trdl.dev.flant.com"
run: |
echo "https://${ENV_URL}"
- name: Install werf
uses: werf/actions/install@v2
- name: Converge
run: |
. $(werf ci-env github --as-file)
werf converge
env:
WERF_DIR: "docs"
WERF_ENV: "review-${{ github.event.number }}"
WERF_KUBE_CONFIG_BASE64: ${{ secrets.KUBECONFIG_BASE64_DEV }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}