Skip to content

Commit

Permalink
No more of ALL history
Browse files Browse the repository at this point in the history
  • Loading branch information
jrvollmer committed Sep 16, 2023
1 parent 4161e2e commit b4ac903
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
# Don't run `git clean -ffdx` and `git reset --hard HEAD` in this step to avoid removing `mbed-os/`.
# These will be run post checkout in the following step
clean: false
fetch-depth: 0

# Clean up any changes in the working index, including untracked files aside from mbed-os/
- name: Post Checkout Cleanup
Expand All @@ -52,6 +51,9 @@ jobs:
run: |
echo ${{ github.event.before }} ${{ github.event.after }}
git reflog
hashes=$(git reflog | head -n 2 | grep -Po "(?<= moving from )\S+")
echo "$hashes"
git diff $hashes
if [[ -f "$MBED_OS_REF_LOCATION/mbed-os.lib" ]]; then
if [[ -n $(diff "$MBED_OS_REF_LOCATION/mbed-os.lib" mbed-os.lib) ]]; then
cp mbed-os.lib "$MBED_OS_REF_LOCATION"
Expand Down

0 comments on commit b4ac903

Please sign in to comment.