Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato committed Mar 27, 2022
1 parent 4ae48c4 commit f97b05e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
31 changes: 30 additions & 1 deletion .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -35,3 +35,32 @@ jobs:
else
exit 0
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) != '' ]]; then
echo 'should be clean'
exit 1
else
exit 0
fi
2 changes: 1 addition & 1 deletion cr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ parse_command_line() {
;;
-i|--install-only)
if [[ -n "${2:-}" ]]; then
echo "istall only"
install_only="$2"
shift
fi
Expand Down Expand Up @@ -199,6 +198,7 @@ parse_command_line() {
fi

if [[ -n "$install_only" ]]; then
echo "Will install cr tool and not run it..."
install_chart_releaser
exit 0
fi
Expand Down

0 comments on commit f97b05e

Please sign in to comment.