Commit Graph

15 Commits

Author SHA1 Message Date
Jon Church
f7615f5917 Add include-hidden-files input
# The Problem

Hidden files and directories (e.g. `.well-known`) are unconditionally excluded from the tar archive. There is no way to include them. (#129)

# The Solution

Add an `include-hidden-files` input (default `false`) that skips the `--exclude=.[^/]*` pattern when set to `true`. `.git` and `.github` are always excluded regardless. Test coverage added for the new option.

I think this is the right approach rather than #134. Keep the default behavior safe, and give a sane option to users who know what they're doing. It was safe enough for upload-artifact, it should be safe enough here.

# Context

`actions/upload-artifact` introduced hidden file exclusion and a corresponding `include-hidden-files` option in [v4.4.0](https://github.com/actions/upload-artifact/releases/tag/v4.4.0). This action adopted the same exclusion behavior in its tar step but never added the equivalent option. This PR closes that gap.

The only sane workaround without this option is to drop this action, manually create the tar, and hand it to `upload-artifact` directly. See [expressjs/expressjs.com#2173](https://github.com/expressjs/expressjs.com/pull/2173) for an example.
2026-01-30 14:03:56 -05:00
Fabian Aguilar Gomez
717c17dd70 Updates from editor 2024-09-09 15:34:39 -05:00
Fabian Aguilar Gomez
5ed71eacfa Updates from editor 2024-09-09 15:30:05 -05:00
Fabian Aguilar Gomez
b83d5a118e Updates from editor 2024-09-09 15:27:19 -05:00
Fabian Aguilar Gomez
a16f4a08dd Update test-hosted-runners.yml 2024-09-09 15:23:36 -05:00
Fabian Aguilar Gomez
b73e0a2c88 Update test-hosted-runners.yml 2024-09-06 15:49:08 -05:00
Yoann Chaudet
53e19ad193 Merge branch 'main' into dependabot/github_actions/actions/checkout-4 2023-12-21 15:01:33 -08:00
Jess Bees
2a5c144074 Use actions/download-artifact@v4 in test 2023-12-14 15:31:31 -05:00
Konrad Pabjan
eb31309b6c Update artifact names in tests 2023-10-27 10:12:08 -04:00
Konrad Pabjan
241a975ec2 Correct artifact name during download 2023-10-26 14:59:03 -04:00
Konrad Pabjan
ef95519d72 Unique artifact name per job 2023-10-26 14:57:05 -04:00
Konrad Pabjan
ecdd3edff7 Switch to using download@v4-beta 2023-10-26 14:50:49 -04:00
dependabot[bot]
405e4260b4 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 07:01:08 +00:00
Yoann Chaudet
2f3239288b Update .github/workflows/test-hosted-runners.yml
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2022-08-19 08:55:15 -07:00
Yoann Chaudet
fc6db751bf doc 2022-08-18 17:43:49 -07:00