-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54120 from s77rt/revert-50559-szymonrybczak/chore…
…/remove-fetch-depth-param Revert "[NoQA] chore(ci): remove `fetch-depth` param"
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup NodeJS | ||
uses: ./.github/actions/composite/setupNode | ||
|
@@ -22,6 +24,22 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "Test" | ||
- name: Get common ancestor commit | ||
run: | | ||
git fetch origin main | ||
common_ancestor=$(git merge-base "${{ github.sha }}" origin/main) | ||
echo "COMMIT_HASH=$common_ancestor" >> "$GITHUB_ENV" | ||
- name: Clean up deleted files | ||
run: | | ||
DELETED_FILES=$(git diff --name-only --diff-filter=D "$COMMIT_HASH" "${{ github.sha }}") | ||
for file in $DELETED_FILES; do | ||
if [ -n "$file" ]; then | ||
rm -f "$file" | ||
echo "Deleted file: $file" | ||
fi | ||
done | ||
- name: Run performance testing script | ||
shell: bash | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters