Skip to content

Commit

Permalink
test(actions): git-checkout@v4
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Mishra <[email protected]>
  • Loading branch information
GMishx committed Dec 23, 2024
1 parent a7b0581 commit ecb6618
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,32 @@ jobs:
}

steps:
- name: Setup git
- name: Install git
run: |
sudo apt update
sudo apt install -y git
sudo apt-get update
sudo apt-get install -y lsb-release sudo gpg ca-certificates
## Add repo for latest git
if case "${{ matrix.os }}" in debian*) true;; *) false;; esac; then
echo "deb http://deb.debian.org/debian $(lsb_release -cs)-backports main" | sudo tee -a /etc/apt/sources.list.d/backport.list
else
sudo apt-get install -y software-properties-common
sudo add-apt-repository $GIT_REPO -y
fi
sudo apt-get update
sudo apt-get install git -y
# Remove added repos
if case "${{ matrix.os }}" in debian*) true;; *) false;; esac; then
sudo rm /etc/apt/sources.list.d/backport.list
else
sudo add-apt-repository --remove $GIT_REPO -y
fi
sudo apt-get update
env:
GIT_REPO: "ppa:git-core/ppa"

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 50
fetch-depth: 0

- name: Fetch tags
run: |
Expand Down

0 comments on commit ecb6618

Please sign in to comment.