update chart release action to use CR release v1.4.0 (#106)

* update chart release action to use CR release v1.4.0

Signed-off-by: cpanato <ctadeu@gmail.com>

* update based on review

Signed-off-by: cpanato <ctadeu@gmail.com>
This commit is contained in:
Carlos Tadeu Panato Junior
2022-03-30 10:25:21 +02:00
committed by GitHub
parent 6208805565
commit a3454e46a6
4 changed files with 99 additions and 20 deletions
+33 -4
View File
@@ -3,7 +3,7 @@ name: test-chart-releaser
on: [pull_request]
jobs:
test_chart_releaser_action:
test_chart_releaser_install_action:
runs-on: ubuntu-latest
permissions:
actions: none
@@ -21,13 +21,42 @@ jobs:
- uses: actions/checkout@v2
- name: Install chart-releaser
uses: ./
with:
install_only: true
env:
CR_TOKEN: "FAKE_SECRETS"
- name: Check install!
run: cr version
- name: Check root directory
run: |
if [[ $(git diff --stat) != '' ]]; then
if ! git diff --stat --exit-code; then
echo 'should be clean'
exit 1
fi
test_chart_releaser_action:
runs-on: ubuntu-latest
permissions:
actions: none
checks: none
contents: none
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
name: Install chart-releaser and run it
steps:
- uses: actions/checkout@v2
- name: Install chart-releaser
uses: ./
env:
CR_TOKEN: "FAKE_SECRETS"
- name: Check root directory
run: |
if ! git diff --stat --exit-code; then
echo 'should be clean'
exit 1
else
exit 0
fi