Skip to content

Commit b5c3db5

Browse files
committed
fix(gha): fetch tags and checkout
going once
1 parent f9408e1 commit b5c3db5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci-default.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ jobs:
3939
run: |
4040
cat lib/openzeppelin-contracts-upgradeable/package.json
4141
42-
- name: Force update submodules
42+
- name: Checkout and setup submodules
4343
run: |
44-
git submodule update --init --recursive --force
45-
git submodule foreach git fetch --all
46-
git submodule foreach git reset --hard origin/HEAD
44+
git submodule update --init --recursive
45+
cd lib/openzeppelin-contracts-upgradeable
46+
git fetch --all --tags
47+
git checkout v4.9.6
48+
cd ../..
4749
4850
- name: Debug submodules
4951
run: |
@@ -75,7 +77,8 @@ jobs:
7577
ls -la lib/openzeppelin-contracts-upgradeable/contracts/utils/cryptography/
7678
pwd
7779
78-
- name: Log content of lib/openzeppelin-contracts-upgradeable/contracts/utils/cryptography/MerkleProofUpgradeable.sol
80+
- name:
81+
Log content of lib/openzeppelin-contracts-upgradeable/contracts/utils/cryptography/MerkleProofUpgradeable.sol
7982
run: |
8083
cat lib/openzeppelin-contracts-upgradeable/contracts/utils/cryptography/MerkleProofUpgradeable.sol
8184

0 commit comments

Comments
 (0)