Skip to content

Commit d13e374

Browse files
authored
Merge pull request #61 from signavio/manser/SIGMANSER-27_gitMirror_automation
CloudOS Managed Infra Services: applying git-mirror automation required for SAP compliance.
2 parents 7d9ef9f + bd08b84 commit d13e374

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/git_mirror.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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 }}

0 commit comments

Comments
 (0)