File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Mirror Repository Workflow
3+ on :
4+ push :
5+ branches : ['main', 'master'] # Change this to the branch you want to trigger the action on, it can be a single branch or a list
6+ workflow_dispatch : # Allows manual trigger of action from Github UI
7+
8+ jobs :
9+ mirror_job :
10+ name : Mirror Repository Job
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout Code
15+ uses : actions/checkout@v3 # Checks out our code into github runner.
16+
17+ - name : Mirror Repository
18+ uses : signavio/manser-repo-mirror-action@v1 # Our custom Action
19+ with :
20+ target_org : signavio-backup
21+ source_access_token : ${{ secrets.GITHUB_TOKEN }} # Secrets created within Github Organisation.
22+ target_access_token : ${{ secrets.MANSER_ENT_MIRROR_TOKEN }}
23+ slack_webhook_url : ${{ secrets.MANSER_REPOCOMP_SLACK_WEBHOOK_URL }}
You can’t perform that action at this time.
0 commit comments