Skip to content

Added input vars for test workflows (#25) #120

Added input vars for test workflows (#25)

Added input vars for test workflows (#25) #120

Workflow file for this run

name: Create Helm Chart
on:
push:
branches: [ dev ]
workflow_dispatch:
workflow_call:
permissions:
contents: write
actions: write
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}-create-helm-chart"
cancel-in-progress: true
jobs:
vars:
name: Generation vars
runs-on: ubuntu-latest
outputs:
branch_pages: ${{ steps.dynamic.outputs.branch_pages }}
steps:
- uses: actions/checkout@v4
- name: Create dynamic vars
id: dynamic
run: |
echo "branch_pages=pages" >> "$GITHUB_OUTPUT"
run_test:
needs: [ vars ]
name: Run workflow - test
uses: ./.github/workflows/test.yaml

Check failure on line 35 in .github/workflows/deploy.yaml

View workflow run for this annotation

GitHub Actions / Create Helm Chart

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yaml (Line: 35, Col: 11): Input lint-security-practices is required, but not provided while calling. .github/workflows/deploy.yaml (Line: 35, Col: 11): Input lint-helm-install-in-k0s-status is required, but not provided while calling.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-run_manual
cancel-in-progress: true
deploy_to_pages:
needs: [ vars, run_test ]
name: Deploy helm charts to github pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v4
- name: Added repo
run: |
helm repo add text-adi https://text-adi.github.io/helm-charts/
- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: charts
pages_branch: ${{ needs.vars.outputs.branch_pages }}
env:
CR_TOKEN: ${{ github.token }}
- name: Run workflow
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# need use this bad use for manual run workflow in specific branch
gh workflow run deploy-pages.yaml --ref ${{ needs.vars.outputs.branch_pages }}