Mirror Repository #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mirror Repository | |
run-name: Mirror Repository | |
on: | |
push: | |
branches: | |
- main | |
# - dev | |
workflow_dispatch: | |
env: | |
public_repository: "github.com/harvard-huit/py-pds" | |
branch_name: ${{ github.ref_name }} | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
mirror: | |
name: Mirror Repository | |
runs-on: ubuntu-latest | |
steps: | |
- name: Mirror Action | |
uses: HUIT/[email protected] | |
with: | |
# Required | |
local_repository: github.huit.harvard.edu/HUIT/py-pds | |
local_github_user: ${{ github.actor }} # from the event context | |
local_github_token: ${{ github.token }} # from the event context | |
remote_repository: ${{ env.public_repository }} | |
remote_github_user: jazahn | |
remote_github_token: ${{ secrets.PUBLIC_GITHUB_TOKEN }} |