Get support for jaapio/sandbox
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
jaapio/sandbox
Files Sync Action
A Github Action that can sync files from one repository to many others. This action allows a maintainer to define community health files in a single repository and have them synced to all other repositories in the Github organization or beyond. You could sync common GitHub Action Workflows, your LICENSE or any other file you can imagine. Regex is used to select the files. Exclude is currently not supported and it is recommended to use a bot user if possible.
Inputs
GITHUB_TOKEN
Required Token to use to get repos and write secrets. ${{secrets.GITHUB_TOKEN}}
will not work.
SRC_REPO
Source of truth for all files to sync. If files get added, modified or deleted here, those changes will be synced to all TARGET_REPOS. Defaults to the workflows repository ($GITHUB_REPOSITORY
)
TARGET_REPOS
Required New line deliminated list of repositories. Repositires are limited to those in which the token user is an owner or collaborator.
FILE_PATTERNS
Required New line deliminated regex expressions to select files from the source repository. All matching files in the target repository will be
- deleted if not present in the
SRC_REPO
, andSKIP_DELETE
isfalse
- overwritten from the
SRC_REPO
if they already exist in theTARGET_REPO
- created in the
TARGET_REPO
, if they do not exist yet there.
All filpaths start at the repository root without a leading slash. The delimiter between path segments is always a forward slash.
COMMIT_MESSAGE
The commit message that will be used to commit the changed files. Check the README for all interpolation options. You can interpolate values by using placeholders in the form of %KEY%
where key can be one of the following items:
key | description |
---|---|
SRC_REPO |
The value from the according action input. |
TARGET_REPO |
The current repo to commit into |
You need more? Let me know by opening an issue here. I will do my best to add them.
SKIP_DELETE
Will omit all delete operations for matching files present in TARGET_REPO
but not existant in SRC_REPO
if set to true
. Defaults to false
.
TEMP_DIR
The working directory where all sync operations will be done. Defaults to tmp-${Date.now().toString()}
SKIP_CLEANUP
If set to true or 1, the cleanup step to remove the temporary workding directory at the end will be skipped. Usefull for debugging purposes. Defaults to false
.
GIT_EMAIL
The e-mail address used to commit the synced files. Defaults to ${process.env.GITHUB_ACTOR}@users.noreply.github.com
.
GIT_USERNAME
The username used to commit the synced files. Defaults to process.env.GITHUB_ACTOR
.
DRY_RUN
Run everything except for secret create and update functionality. Defaults to false
.
Usage
uses: adrianjost/files-sync-action@v1.0.1
with:
FILE_PATTERNS: |
^LICENSE$
^.github/workflows/sync-.*
TARGET_REPOS: |
adrianjost/files-sync-target
any/other-repo
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN_FILES }}
See the workflows in this repository for another example.
Planned Features
- allow RegExp for repo selection just like in google/secrets-sync-action allows it.
- add option to skip replacement of files
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2