use the branch_name as the default for the optional commit hash
There was an issue with the script when passing optional rustfmt configs without specifying a commit hash. Because these optional values are passed via positional arguments the configs ($4) would be used in place of the commit hash ($3). Now that we set a default value for the optional commit hash we avoid this problem.
This commit is contained in:
parent
e5c212b56f
commit
d698bf4e1b
2 changed files with 2 additions and 2 deletions
2
.github/workflows/check_diff.yml
vendored
2
.github/workflows/check_diff.yml
vendored
|
|
@ -30,4 +30,4 @@ jobs:
|
|||
rustup target add x86_64-unknown-linux-gnu
|
||||
|
||||
- name: check diff
|
||||
run: bash ${GITHUB_WORKSPACE}/ci/check_diff.sh ${{ github.event.inputs.clone_url }} ${{ github.event.inputs.branch_name }} ${{ github.event.inputs.commit_hash }} ${{ github.event.inputs.rustfmt_configs }}
|
||||
run: bash ${GITHUB_WORKSPACE}/ci/check_diff.sh ${{ github.event.inputs.clone_url }} ${{ github.event.inputs.branch_name }} ${{ github.event.inputs.commit_hash || github.event.inputs.branch_name }} ${{ github.event.inputs.rustfmt_configs }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue