Skip to content

Commit

Permalink
New workflows: copy-repo-secrets-to-org-secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Jun 6, 2024
1 parent a84df8f commit f949be1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 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,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:?}"

0 comments on commit f949be1

Please sign in to comment.