Skip to content

Commit

Permalink
Replace the use of actions/checkout with a manual checkout
Browse files Browse the repository at this point in the history
v3 of this action triggers deprecation warnings and will stop working
soon, while v4 doesn't work under Ubuntu 18.04 which we use for ODBC
testing due to actions/checkout#1442

Closes #1132.
  • Loading branch information
vadz committed Mar 20, 2024
1 parent a02f9a8 commit 1b3bd79
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,23 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
run: |
case "${{matrix.container}}" in
ubuntu:18.04)
export DEBIAN_FRONTEND=noninteractive
apt-get update -qq
apt-get install -qq git
;;
esac
git config --global init.defaultBranch master
git config --global --add safe.directory `pwd`
git config --global advice.detachedHead false
git init .
git remote add origin https://github.com/SOCI/soci.git
git fetch --depth=1 origin $GITHUB_SHA
git checkout FETCH_HEAD
- name: Set environment variables
run: |
Expand Down

0 comments on commit 1b3bd79

Please sign in to comment.