Skip to content

Commit

Permalink
New workflow: copy-repo-secrets-to-org-secrets.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wknapik authored and thypon committed Feb 15, 2024
1 parent 65da720 commit 9a4b29f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/copy-repo-secrets-to-org-secrets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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:?}"

0 comments on commit 9a4b29f

Please sign in to comment.