1
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-04-14 04:06:01 +02:00
Commit graph

183 commits

Author SHA1 Message Date
John Wesley Walker III
f0ae1980f3
Update test.yml 2024-02-17 04:52:37 +01:00
John Wesley Walker III
5ecc8b5e51
Update test.yml 2024-02-17 04:47:22 +01:00
John Wesley Walker III
159fd987f6
Try mapping git runtime into container 2024-02-17 04:26:39 +01:00
John Wesley Walker III
7aa0640182
Determine path to git runtime 2024-02-17 04:17:21 +01:00
John Wesley Walker III
9af61b077f
Update test.yml 2024-02-17 03:55:37 +01:00
John Wesley Walker III
e7b6c8e8ba
Update test.yml 2024-02-17 03:54:03 +01:00
John Wesley Walker III
365131c875
Update test.yml 2024-02-17 03:49:05 +01:00
John Wesley Walker III
82808ae824
Update test.yml 2024-02-17 03:48:12 +01:00
John Wesley Walker III
28a19e17a8
Update test.yml 2024-02-17 03:46:02 +01:00
John Wesley Walker III
2349742c16
Try disabling https_proxy while git installs. 2024-02-17 03:43:47 +01:00
John Wesley Walker III
d5b8261d14
Upgrade apt-get 2024-02-17 03:38:18 +01:00
John Wesley Walker III
eb87b7acbe
Tweaked apt commands 2024-02-17 03:34:00 +01:00
John Wesley Walker III
97826d9e80
Tweaked apt commands 2024-02-17 03:32:47 +01:00
John Wesley Walker III
772739e526
ensure software-properties-common is installed. 2024-02-17 03:28:37 +01:00
John Wesley Walker III
87e9846a67
Followed official guidance for installing git
source:  https://git-scm.com/download/linux
2024-02-17 03:21:48 +01:00
John Wesley Walker III
996d1458e2
Second attempt to install git via apt-get 2024-02-17 03:19:14 +01:00
John Wesley Walker III
894f97fe2e
Removed commented-out docker commands in test.yml 2024-02-17 02:26:50 +01:00
John Wesley Walker III
6af92d23ad
Delete .github/ubuntu-with-git directory 2024-02-17 02:26:00 +01:00
John Wesley Walker III
34a3ecdf02
Create ubuntu-with-git/action.yml 2024-02-17 01:29:17 +01:00
John Wesley Walker III
a48123a2d5
Rename ubuntu-with-git.Dockerfile to Dockerfile 2024-02-17 01:25:29 +01:00
John Wesley Walker III
78c6190d6f
Create ubuntu-with-git.Dockerfile 2024-02-17 00:48:59 +01:00
John Wesley Walker III
572f5de1b0
Experiment on test-proxy
Try pointing `test-proxy` at a custom container image `fdev321123/ubuntu-with-git` (courtesy of @fhammerl)
2024-02-16 18:28:36 +01:00
John Wesley Walker III
3940af5a92
Ensure test-proxy is using an up-to-date version of git 2024-02-16 15:22:23 +01:00
John Wesley Walker III
9397c07555
Fix order-of-operations in test.yml 2024-02-16 15:16:15 +01:00
John Wesley Walker III
9b4fb8ba7d
fix order-of-operations in test.yml 2024-02-16 15:14:37 +01:00
John Wesley Walker III
b300d42bb0
Inspect git version during test-proxy 2024-02-16 15:10:12 +01:00
John Wesley Walker III
268a122c29
Temporarily disable failing test.
Added a clarifying comment about test branches.
2024-02-16 14:57:51 +01:00
John Wesley Walker III
ed56252dbe
prefer ununtu over alpine in test-proxy 2024-02-16 14:23:37 +01:00
John Wesley Walker III
463d0885b3
Bump actions/checkout version in test-proxy 2024-02-16 14:16:47 +01:00
John Wesley Walker III
4dfc3ce2d2
revert change to container image in test.yml 2024-02-16 13:40:58 +01:00
John Wesley Walker III
6d7426941d
Prefer ubuntu over alpine in test-proxy workflow 2024-02-16 13:31:30 +01:00
Johannes Schindelin
6f108b29f4 ci: verify that an existing sparse checkout can be made unsparse
There are use cases in particular with non-ephemeral runners where an
existing worktree (that has been initialized as a sparse checkout) is
reused in subsequent CI runs (where `actions/checkout` is run _without_
any `sparse-checkout` parameter).

In these scenarios, we need to make sure that the sparse checkout is
disabled before checking out the files.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2024-01-31 16:13:05 +01:00
Johannes Schindelin
c4cda129b7 npm run build
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2024-01-31 14:54:18 +01:00
Johannes Schindelin
5adf77fbfc If no sparse-checkout parameter is specified, disable it
This should allow users to reuse existing folders when running
`actions/checkout` where a previous run asked for a sparse checkout but
the current run does not ask for a sparse checkout.

This fixes https://github.com/actions/checkout/issues/1475

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2024-01-31 14:52:28 +01:00
Cory Miller
b4ffde65f4
Link to release page from what's new section () 2023-10-17 11:52:30 -04:00
Peter Bengtsson
8530928916
Correct link to GitHub Docs ()
No hardcoded language in the URL and uses the correct docs.github.com domain.
2023-10-13 11:07:47 -04:00
Josh Gross
7cdaf2fbc0
Update CODEOWNERS to Launch team () 2023-10-10 11:16:51 -04:00
Cory Miller
8ade135a41
Prepare 4.1.0 release () 2023-09-22 13:40:21 -04:00
Finley Garton
c533a0a4cf
Add support for partial checkout filters ()
* added filter option & tests

* added build file

* fix test oversight

* added exit 1

* updated docs to specify override

* undo unneeded readme change

* set to undefined rather than empty string

* run git config in correct di

---------

Co-authored-by: Cory Miller <13227161+cory-miller@users.noreply.github.com>
2023-09-22 13:30:36 -04:00
Varun Sivapalan
72f2cec99f
Update README.md for V4 ()
* Update README.md for V4

* Update actionReference in generate-docs.ts for v4
2023-09-05 09:21:52 -04:00
Tatyana Kostromskaya
3df4ab11eb
Release 4.0.0 ()
* Release 4.0.0

* Add new major version to workflow
2023-09-04 14:19:40 +02:00
Simon Baird
8b5e8b7687
Support fetching without the --progress option ()
Setting the `show-progress` option to false in the `with` section of the
workflow step will cause git fetch to run without `--progress`.

The motivation is to be able to suppress the noisy progress status
output which adds many hundreds of "remote: Counting objects: 85%
(386/453)" and similar lines in the workflow log.

This should be sufficient to resolve  and its older friends,
though the solution is different to the one proposed there because
it doesn't use the --quiet flag. IIUC git doesn't show the progress
status by default since the output is not a terminal, so that's why
removing the --progress option is all that's needed.

Adding the --quiet flag doesn't make a lot of difference once the
--progress flag is removed, and actually I think using --quiet would
suppress some other more useful output that would be better left
visible.

Signed-off-by: Simon Baird <sbaird@redhat.com>
2023-09-01 14:19:18 -04:00
Tatyana Kostromskaya
97a652b800
Update default runtime to node20 ()
* .

* update workflows
2023-08-29 17:01:52 +02:00
Luke Tomlinson
f43a0e5ff2
Release 3.6.0 () 2023-08-24 09:54:47 -04:00
Robert Wieczoreck
7739b9ba2e
Add option to fetch tags even if fetch-depth > 0 ()
* Add option to fetch tags even if fetch-depth > 0

* Add jest tests for fetchDepth and fetchTags options
2023-08-16 16:34:54 -04:00
Johannes Schindelin
96f53100ba
Mark test scripts with Bash'isms to be run via Bash ()
In , I mistakenly replaced the hash-bang lines in the two new
scripts with `#!/bin/sh`, missing that both files contain the Bash'ism
`[[`. Symptom as per
https://github.com/actions/checkout/actions/runs/5200323109/jobs/9378889172?pr=1369#step:12:5

    __test__/verify-sparse-checkout.sh: 58: [[: not found

Let's change those hash-bang lines back to `#!/bin/bash`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2023-06-09 11:05:29 -04:00
Tingluo Huang
c85c95e3d7
Release v3.5.3 () 2023-06-09 10:47:54 -04:00
Johannes Schindelin
d106d4669b
Add support for sparse checkouts ()
* Add support for sparse checkouts

* sparse-checkout: optionally turn off cone mode

While it _is_ true that cone mode is the default nowadays (mainly for
performance reasons: code mode is much faster than non-cone mode), there
_are_ legitimate use cases where non-cone mode is really useful.

Let's add a flag to optionally disable cone mode.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

* Verify minimum Git version for sparse checkout

The `git sparse-checkout` command is available only since Git version
v2.25.0. The `actions/checkout` Action actually supports older Git
versions than that; As of time of writing, the minimum version is
v2.18.0.

Instead of raising this minimum version even for users who do not
require a sparse checkout, only check for this minimum version
specifically when a sparse checkout was asked for.

Suggested-by: Tingluo Huang <tingluohuang@github.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

* Support sparse checkout/LFS better

Instead of fetching all the LFS objects present in the current revision
in a sparse checkout, whether they are needed inside the sparse cone or
not, let's instead only pull the ones that are actually needed.

To do that, let's avoid running that preemptive `git lfs fetch` call in
case of a sparse checkout.

An alternative that was considered during the development of this patch
(and ultimately rejected) was to use `git lfs pull --include <path>...`,
but it turned out to be too inflexible because it requires exact paths,
not the patterns that are available via the sparse checkout definition,
and that risks running into command-line length limitations.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

---------

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Co-authored-by: Daniel <daniel.fernandez@feverup.com>
2023-06-09 09:08:21 -04:00
Dimitri Papadopoulos Orfanos
f095bcc56b
Fix typos found by codespell () 2023-04-19 16:55:10 +02:00
SKi
47fbe2df0a
Fix: Checkout fail in self-hosted runners when faulty submodule are checked-in ()
* Fix Self hosted runner issue wrt bad submodules - solution cleanup working space.

* Fix format with npm run format output

* Add mock implementation for new function submoduleStatus

* Add 2  test cases for submodule status.

* Codeql-Action Analyse revert v1 to v2

---------

Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com>
Co-authored-by: sminnie <minnie@sankhe.com>
2023-04-14 06:26:47 -04:00