Skip to content

fix build dependencies, release v0.5.0 #41

fix build dependencies, release v0.5.0

fix build dependencies, release v0.5.0 #41

Workflow file for this run

name: Mirror to Codeberg
on:
pull_request:
types: [closed]
push:
tags: ['v*']
delete:
branches: ['**']
tags: ['v*']
workflow_dispatch:
jobs:
mirror:
runs-on: ubuntu-latest
# mirror on:
# - branch delete
# - tag push
# - tag delete
# - fork PR merge
if: |
github.event_name != 'pull_request' ||
(
github.event.pull_request.merged == true &&
github.event.pull_request.head.repo.full_name != github.repository
)
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push mirror to Codeberg
run: |
git remote add codeberg \
https://$CODEBERG_USER:[email protected]/$CODEBERG_USER/$(basename $GITHUB_REPOSITORY).git
git push --mirror codeberg
env:
CODEBERG_USER: 'nggit'
CODEBERG_TOKEN: ${{ secrets.CODEBERG_TOKEN }}