From c027be8bc4049de5fee5d05cb300bcbbdebb2903 Mon Sep 17 00:00:00 2001 From: Joe Horsnell Date: Wed, 6 Apr 2022 19:58:47 +0100 Subject: [PATCH] fix: Typo in README (#81) PR #75 had a small typo in the args to `ct` - it should be `--target-branch`. Also, rather than hard-coding `main`, we can use the event [context][1] to get the name of the default branch if it's something different (eg `master`). [1]: https://docs.github.com/en/actions/learn-github-actions/contexts Signed-off-by: Joe Horsnell Co-authored-by: automation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 31951f5..8e3b550 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ jobs: - name: Run chart-testing (list-changed) id: list-changed run: | - changed=$(ct list-changed --targer-branch main) + changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) if [[ -n "$changed" ]]; then echo "::set-output name=changed::true" fi