Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,40 @@ jobs:
- osprey
- playground
steps:
- uses: actions/checkout@v6
- name: Stats
uses: jgehrcke/github-repo-stats@306db38ad131cab2aa5f2cd3062bf6f8aa78c1aa # 1.4.2
with:
repository: roostorg/${{ matrix.repo }}
ghtoken: ${{ secrets.ghrs_github_api_token }}

- name: Checkout
uses: actions/checkout@v6
with:
repository: roostorg/${{ matrix.repo }}
fetch-depth: 0
- uses: actions/checkout@v6

- name: Checkout mirror action
uses: actions/checkout@v6
with:
repository: roostorg/mirror
ref: ${{ github.sha }}
path: .mirror-action

- name: Codeberg
- name: Mirror to Codeberg
uses: ./.mirror-action
with:
# There's something weird with Codeberg repo names; appending `-mirror` for now
destination: https://codeberg.org/roostorg/${{ matrix.repo }}-mirror.git
token: ${{ secrets.CODEBERG_TOKEN }}
token_username: ${{ secrets.CODEBERG_USERNAME }}

- name: GitLab
- name: Mirror to GitLab
uses: ./.mirror-action
with:
destination: https://gitlab.com/roostorg/${{ matrix.repo }}.git
token: ${{ secrets.GITLAB_TOKEN }}

- name: Tangled
- name: Mirror to Tangled
uses: ./.mirror-action
with:
destination: git@tangled.org:roost.tools/${{ matrix.repo }}
Expand Down