Skip to content

update cr to v1.7.0 #184

update cr to v1.7.0

update cr to v1.7.0 #184

Workflow file for this run

name: test-chart-releaser

Check failure on line 1 in .github/workflows/test-action.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-action.yml

Invalid workflow file

`permissions` is not a valid event name
on:
pull_request:
permissions: {}
jobs:
test_chart_releaser_install_action:
runs-on: ubuntu-latest
permissions:
contents: read
name: Install chart-releaser and test presence in path
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install chart-releaser
uses: ./
with:
install_only: true
env:
CR_TOKEN: "FAKE_SECRETS"
- name: Check install!
run: |
cr version
CR_VERSION_OUTPUT=$(ct version 2>&1 /dev/null)
ACTUAL_VERSION=$(echo "$CR_VERSION_OUTPUT" | grep Version | rev | cut -d ' ' -f1 | rev)
if [[ $ACTUAL_VERSION != 'v1.7.0' ]]; then
echo 'should be v1.7.0'
exit 1
else
exit 0
fi
shell: bash
- name: Check root directory
run: |
if ! git diff --stat --exit-code; then
echo 'should be clean'
exit 1
fi
test_chart_releaser_action:
runs-on: ubuntu-latest
permissions:
contents: read
name: Install chart-releaser and run it
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- 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
fi