From de712406e22c51549ad5692558612f76461c11ed Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Fri, 7 Jun 2024 11:35:19 +0200 Subject: [PATCH] Revert "Delete .github/workflows/copy-repo-secrets-to-org-secrets.yml" This reverts commit 6d616dbc3ebf7fc0639dd118d8b25bfd82923936. --- .../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 00000000..a1b2f19c --- /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:?}"