feat: fix bug with similar commit hashes. (#549)

* feat: improve error handling when similar commit hashed are detected.

* Updated triggered event

* Update debug message.

* Removed --no-merges restriction.

* Update to use qoutes.

* updated git fetch.
This commit is contained in:
Tonye Jack
2022-07-18 16:34:41 -04:00
committed by GitHub
parent 8acdf5acdf
commit b2ee165d6b
2 changed files with 52 additions and 7 deletions

View File

@@ -8,6 +8,9 @@ on:
pull_request:
branches:
- main
pull_request_review:
types:
- submitted
jobs:
shellcheck:
@@ -116,6 +119,29 @@ jobs:
shell:
bash
test-similar-base-and-commit-sha:
name: Test changed-files similar base and commit sha
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
max-parallel: 4
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest, macos-11, ubuntu-18.04, windows-2022]
steps:
- name: Checkout to branch
uses: actions/checkout@v3
- name: Run changed-files with a single commit history
id: changed-files
uses: ./
- name: Show output
run: |
echo '${{ toJSON(steps.changed-files.outputs) }}'
shell:
bash
test-non-existent-base-sha:
name: Test changed-files non existent base sha
runs-on: ${{ matrix.platform }}