No description
![]() 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> |
||
---|---|---|
.github | ||
nix | ||
.envrc | ||
.gitignore | ||
.gitlab-ci.yml | ||
flake.lock | ||
flake.nix | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
README.md |
pad-archiver
Archives the list of URLs provided on the standard input.
Usage of pad-archiver:
-C string
The directory containing the git repository in which to archive the pads. (default "$PWD")
-password string
The password for authenticating to the remote. Can also be specified via the environment variable GIT_PASSWORD.
-push
Push the changes to the remote specified by remoteUrl.
-url string
URL to push changes to.
-username string
The username for authenticating to the remote.
go build
pad-archiver < pads.txt
Examples
Using in GitLab CI
Archive pads:
image: ghcr.io/dadada/pad-archiver
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
script:
- --push --url "${CI_PROJECT_URL}.git" --username gitlab-ci-token --password "${CI_ACCESS_TOKEN}" < pads.txt
As a GitHub action
TODO
Using Container Image
podman run --rm --mount type=bind,source=./.,destination=/repo -i --workdir /repo ghcr.io/dadada/pad-archiver < pads.txt