From f949be1a3c774c120b6a80ccb7b3d9e7c9f73e4a Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Thu, 6 Jun 2024 21:29:52 +0200 Subject: [PATCH] New workflows: copy-repo-secrets-to-org-secrets --- .../workflows/copy-repo-secrets-to-org-secrets.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/copy-repo-secrets-to-org-secrets.yml diff --git a/.github/workflows/copy-repo-secrets-to-org-secrets.yml b/.github/workflows/copy-repo-secrets-to-org-secrets.yml new file mode 100644 index 0000000..a1b2f19 --- /dev/null +++ b/.github/workflows/copy-repo-secrets-to-org-secrets.yml @@ -0,0 +1,13 @@ +name: Copy repo secrets to org secrets +on: + workflow_dispatch: + schedule: + - cron: '30 1 * * *' +jobs: + copy-secrets: + runs-on: ubuntu-latest + steps: + - env: + GH_TOKEN: ${{ secrets.ORG_SECRETS_MANAGER_TOKEN }} + GH_TO_SLACK_USER_MAP: ${{ secrets.GH_TO_SLACK_USER_MAP }} + run: gh secret set GH_TO_SLACK_USER_MAP -o "${GITHUB_REPOSITORY_OWNER:?}" -v all <<<"${GH_TO_SLACK_USER_MAP:?}"