Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
build: update the mirror script for action-inject-ssm-secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinpinto committed Sep 9, 2020
1 parent 5011bef commit 04534ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:

# marvinpinto/action-keybase-notifications
# marvinpinto/action-automatic-releases
# marvinpinto/action-inject-ssm-secrets
- name: "Automatically mirror release artifacts"
env:
GITHUB_SUPER_TOKEN: ${{ secrets.GITHUB_SUPER_TOKEN }}
Expand Down
10 changes: 10 additions & 0 deletions scripts/mirror-actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ fi

ACTION_KEYBASE_NOTIFICATIONS_REPO="action-keybase-notifications"
ACTION_AUTOMATIC_RELEASES_REPO="action-automatic-releases"
ACTION_INJECT_SSM_SECRETS_REPO="action-inject-ssm-secrets"
TAG=$1
GITHUB_LOGIN="marvinpinto"
RELEASE_BODY="Details available at [marvinpinto/actions@${TAG}](https://github.com/marvinpinto/actions/releases/tag/${TAG})."
Expand Down Expand Up @@ -96,3 +97,12 @@ cp packages/automatic-releases/README.md /tmp/${ACTION_AUTOMATIC_RELEASES_REPO}/
cp packages/automatic-releases/action.yml /tmp/${ACTION_AUTOMATIC_RELEASES_REPO}/
cp LICENSE /tmp/${ACTION_AUTOMATIC_RELEASES_REPO}/
create_tagged_release "$ACTION_AUTOMATIC_RELEASES_REPO"

# Mirroring SSM Secrets
rm -rf "/tmp/${ACTION_INJECT_SSM_SECRETS_REPO}"
git clone "https://marvinpinto:${GITHUB_SUPER_TOKEN}@github.com/marvinpinto/${ACTION_INJECT_SSM_SECRETS_REPO}.git" /tmp/${ACTION_AUTOMATIC_RELEASES_REPO}
cp -R packages/aws-ssm-secrets/dist /tmp/${ACTION_INJECT_SSM_SECRETS_REPO}/
cp packages/aws-ssm-secrets/README.md /tmp/${ACTION_INJECT_SSM_SECRETS_REPO}/
cp packages/aws-ssm-secrets/action.yml /tmp/${ACTION_INJECT_SSM_SECRETS_REPO}/
cp LICENSE /tmp/${ACTION_INJECT_SSM_SECRETS_REPO}/
create_tagged_release "$ACTION_INJECT_SSM_SECRETS_REPO"

0 comments on commit 04534ff

Please sign in to comment.