Add support for running the incremental script in Actions
diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 0000000..fdaf830 --- /dev/null +++ b/.github/main.workflow
@@ -0,0 +1,11 @@ +workflow "Update Trunk CDN" { + on = "push" + resolves = ["Incremental"] +} + +action "Incremental" { + uses = "./Scripts/" + secrets = ["GITHUB_TOKEN"] + TO_REPO = "orta/CDN-Specs" + TO_BRANCH = "master" +}
diff --git a/Scripts/Dockerfile b/Scripts/Dockerfile new file mode 100644 index 0000000..ec9e1a4 --- /dev/null +++ b/Scripts/Dockerfile
@@ -0,0 +1,11 @@ +FROM ruby:2.5 + +MAINTAINER CocoaPods + +LABEL "com.github.actions.name"="Incremental Update" +LABEL "com.github.actions.description"="Adds a commit for CDN changes to a Specs Repo" +LABEL "com.github.actions.icon"="zap" +LABEL "com.github.actions.color"="blue" + +RUN ls +CMD ["ls"]
diff --git a/Scripts/README.md b/Scripts/README.md index 8a74d97..4ca1436 100644 --- a/Scripts/README.md +++ b/Scripts/README.md
@@ -1,5 +1,12 @@ -These scripts are a part of updating CocoaPods to work with a CDN instead of only via +## Scripts + +The two scripts are a part of updating CocoaPods to work with a CDN instead of only via `git` repos. - [`add_indexes.sh`](add_indexes.sh) - Adds an index for every Pod, this should probably only need to be used once - [`add_incremental_index.sh`](add_incremental_index.sh) - Uses git to update only the last x Pods which have changed + +## The Dockerfile + +The Dockerfile is executed via GitHub Actions, you can run the same execution path locally by running: `docker run ./Scripts/Dockerfile` from the root. +