Skip to content

Commit

Permalink
fix: Typo in README
Browse files Browse the repository at this point in the history
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 <github@joehorsnell.com>
  • Loading branch information
automation committed Mar 18, 2022
1 parent dae259e commit b3f38e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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
Expand Down

0 comments on commit b3f38e5

Please sign in to comment.