Skip to content

Commit

Permalink
Create mirror.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lurkydismal authored Nov 17, 2023
1 parent 67f484e commit e1aed8b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
push:
branches:
- 'main'

# Declare default permissions as read only.
permissions: read-all

jobs:
mirror_job:
permissions:
contents: write
deployments: write
runs-on: ubuntu-latest
name: Mirror SOURCE_BRANCH_NAME branch to DESTINATION_BRANCH_NAME branch
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
- name: Mirror action step
id: mirror
uses: google/mirror-branch-action@30c52ee21f5d3bd7fb28b95501c11aae7f17eebb # v2.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
source: 'main'
dest: 'master'

0 comments on commit e1aed8b

Please sign in to comment.