Make action compatible with push events (#12)

This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-07-30 14:33:55 +02:00
parent d2d078c510
commit f1fcfe77d5
No known key found for this signature in database
GPG key ID: BC5E2BD907F9A8EC
13 changed files with 179 additions and 75 deletions

View file

@ -0,0 +1,44 @@
name: 'Collect charts'
description: 'Collects Helm charts based on the inputs and returns the lint/test matrix'
inputs:
token:
description: >
GitHub token for GitHub API requests.
required: true
default: '${{ github.token }}'
chartsFolder:
description: >
Base folder containing all the charts
required: true
default: 'charts'
repoConfigFile:
description: >
Path to the repo config file that contains which charts
should be excluded from linting/testing.
required: true
default: '.ci/repo-config.yaml'
getAllCharts:
description: >
Instead of finding the changed charts, return
all the charts
required: false
default: 'false'
overrideCharts:
description: >
A JSON encoded array of charts to return instead of finding
the changed charts
required: false
default: '[]'
outputs:
charts:
description: >
An array of all the Helm charts that contain changes
chartsToInstall:
description: >
An array of the charts that should be installed
chartsToLint:
description: >
An array of the charts that should be linted
runs:
using: 'node16'
main: 'dist/index.js'