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:?}"