33 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
Joel Ambass 45dc78884c Add workflow file for publishing releases to immutable action package
This workflow file publishes new action releases to the immutable action package of the same name as this repo.

This is part of the Immutable Actions project which is not yet fully released to the public. First party actions like this one are part of our initial testing of this feature.
2024-09-23 15:41:49 +02:00
Fabian Aguilar Gomez fc056d0994 Merge branch 'main' into hidden-files 2024-09-11 13:09:25 -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
Mingzi Yi 68c8fd1023 pin release drafter version 2024-09-06 14:27:54 -07:00
Fabian Aguilar Gomez b73e0a2c88 Update test-hosted-runners.yml 2024-09-06 15:49:08 -05:00
dependabot[bot] f98d42fd3a Bump release-drafter/release-drafter from 5 to 6
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5 to 6.
- [Release notes](https://github.com/release-drafter/release-drafter/releases)
- [Commits](https://github.com/release-drafter/release-drafter/compare/v5...v6)

---
updated-dependencies:
- dependency-name: release-drafter/release-drafter
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-12 06:18:34 +00:00
dependabot[bot] 14007f6464 Bump the non-breaking-changes group with 1 update
Bumps the non-breaking-changes group with 1 update: [actions/publish-action](https://github.com/actions/publish-action).


Updates `actions/publish-action` from 0.2.2 to 0.3.0
- [Commits](https://github.com/actions/publish-action/compare/v0.2.2...v0.3.0)

---
updated-dependencies:
- dependency-name: actions/publish-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: non-breaking-changes
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-31 17:27:38 +00: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
dependabot[bot] 2b33ce347b Bump actions/publish-action from 0.2.1 to 0.2.2
Bumps [actions/publish-action](https://github.com/actions/publish-action) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/actions/publish-action/releases)
- [Commits](https://github.com/actions/publish-action/compare/v0.2.1...v0.2.2)

---
updated-dependencies:
- dependency-name: actions/publish-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13 22:35:44 +00:00
James M. Greene 4103baae3e Update to latest actions/publish-action
To avoid Actions core deprecation messages.

https://github.com/actions/publish-action/releases/tag/v0.2.1
2022-11-22 10:27:53 -06:00
Yoann Chaudet 42a1761ba2 Update actions/checkout 2022-10-31 16:25:59 -07:00
James M. Greene 287627f624 Trigger on "released" to avoid prereleases 2022-08-19 12:31:18 -05:00
James M. Greene 88565766e5 Only update the major tag upon publishing release 2022-08-19 12:29:14 -05: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
Yoann Chaudet 888798aeba Add symlink check 2022-08-18 16:49:51 -07:00
Yoann Chaudet 2ab5cde5b2 Normalize 2022-08-18 16:42:34 -07:00
Yoann Chaudet ae9ee82aa6 Add extract 2022-08-18 16:41:23 -07:00
Yoann Chaudet 78f064a158 Fix path 2022-08-18 16:36:57 -07:00
Yoann Chaudet 6b3212610f Add tests 2022-08-18 16:33:31 -07:00
Yoann Chaudet 4feee6ae5a Tweak name 2022-05-24 15:06:49 -07:00
Yoann Chaudet 9ebc849ee3 Add release drafter 2022-05-24 15:05:24 -07:00
Yoann Chaudet 47911bb681 Add CI 2022-05-24 14:57:20 -07:00