Skip to content

chore(ci): add cleanup workflow update notification #1

chore(ci): add cleanup workflow update notification

chore(ci): add cleanup workflow update notification #1

Workflow file for this run

name: cleanup

Check failure on line 1 in .github/workflows/cleanup.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cleanup.yml

Invalid workflow file

`defaults` is not a valid event name
on:
workflow_call:
inputs:
werfDir:
required: false
type: string
withoutKube:
required: false
type: string
werfRepo:
required: false
type: string
secrets:
cleanupToken:
description: "cleanup token"
required: true
kubeconfig:
required: false
githubToken:
required: true
defaults:
run:
shell: bash
jobs:
cleanup:
name: cleanup
runs-on: ubuntu-latest-16-cores
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install werf
uses: werf/actions/install@v2
with:
channel: alpha
- name: Cleanup
run: |
. $(werf ci-env github --as-file)
werf cleanup
env:
WERF_DIR: ${{ inputs.werfDir }}
WERF_WITHOUT_KUBE: ${{ inputs.withoutKube }}
GITHUB_TOKEN: ${{ secrets.githubToken }}
WERF_REPO_GITHUB_TOKEN: ${{ secrets.cleanupToken }}
WERF_KUBE_CONFIG_BASE64: ${{ secrets.kubeconfig }}
WERF_REPO: ${{ inputs.werfRepo }}