Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4eef3ec

Browse files
committed
Have actions/checkout do the full fetch
Setting the "fetch-depth" to 0 does a deep (i.e., ordinary) fetch,fetching all commits and tags. Setting "submodules" to "recursive"clones and checks out all submodules. These options allow commandsthat were doing those things to be removed from the later steps.
1 parent415a8eb commit4eef3ec

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

‎.github/workflows/cygwin-test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222

2323
-uses:actions/checkout@v4
2424
with:
25-
fetch-depth:9999
25+
fetch-depth:0
26+
submodules:recursive
2627

2728
-uses:cygwin/cygwin-install-action@v4
2829
with:
@@ -41,9 +42,6 @@ jobs:
4142
-name:Prepare this repo for tests
4243
run:|
4344
set -x
44-
45-
/usr/bin/git submodule update --init --recursive
46-
/usr/bin/git fetch --tags
4745
TRAVIS=yes ./init-tests-after-clone.sh
4846
4947
-name:Further prepare git configuration for tests

‎.github/workflows/pythonpackage.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
steps:
2525
-uses:actions/checkout@v4
2626
with:
27-
fetch-depth:9999
27+
fetch-depth:0
28+
submodules:recursive
2829

2930
-name:Set up Python ${{ matrix.python-version }}
3031
uses:actions/setup-python@v4
@@ -41,9 +42,6 @@ jobs:
4142
-name:Prepare this repo for tests
4243
run:|
4344
set -x
44-
45-
git submodule update --init --recursive
46-
git fetch --tags --force
4745
TRAVIS=yes ./init-tests-after-clone.sh
4846
4947
-name:Prepare git configuration for tests

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp