Copy repo secrets to org secrets #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:?}" |